Date: Saturday, September 15, 2018 @ 02:38:36
  Author: kkeen
Revision: 381006

archrelease: copy trunk to community-x86_64

Added:
  sdcc/repos/community-x86_64/
  sdcc/repos/community-x86_64/PKGBUILD
    (from rev 381005, sdcc/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: sdcc/repos/community-x86_64/PKGBUILD (from rev 381005, 
sdcc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2018-09-15 02:38:36 UTC (rev 381006)
@@ -0,0 +1,47 @@
+# Maintainer: Kyle Keen <keen...@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: Jose Negron <josenj.a...@mailnull.net>
+
+pkgname=sdcc
+pkgver=3.7.0
+pkgrel=5
+pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 
and the Motorola 68HC08)"
+arch=('x86_64')
+license=('GPL')
+depends=('bash' 'gcc-libs' 'boost-libs')
+makedepends=('gputils' 'flex' 'bison' 'patch' 'boost')
+optdepends=('python')
+url="http://sdcc.sourceforge.net/";
+options=(!strip  staticlibs)
+source=(https://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-${pkgver//_/-}.tar.bz2)
+md5sums=('76cc85d7ff27c46b930d309ea940a02f')
+
+# namcap claims boost-libs isn't needed, investigate this
+
+prepare() {
+  cd "$srcdir/$pkgname"
+  sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure
+}
+
+build() {
+  cd "$srcdir/$pkgname"
+  ./configure \
+       --prefix=/usr \
+       --includedir=/usr/include/sdcc \
+       --libdir=/usr/lib/sdcc \
+       --disable-werror
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname"
+
+  make install DESTDIR="$pkgdir"
+
+  if [ -d "$pkgdir/usr/lib/lib" ]; then
+    mv "$pkgdir/usr/lib/lib/"* "$pkgdir/usr/lib/sdcc/"
+    rm -rf "$pkgdir/usr/lib/lib"
+  fi
+
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' 
"$pkgdir/usr/bin/as2gbmap"
+}

Reply via email to