summaryrefslogtreecommitdiff
path: root/community-staging/sdcc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
committerroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
commit965fe5dd2bc0fae6b53c10d880c15f494dd589ac (patch)
tree910883dffa913262b28fb7a0e3bc41c3325b1dd2 /community-staging/sdcc
parent962d1e81a62d7259ccb686da1a44de2bb28e73a5 (diff)
Tue Oct 9 00:33:25 PDT 2012
Diffstat (limited to 'community-staging/sdcc')
-rw-r--r--community-staging/sdcc/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community-staging/sdcc/PKGBUILD b/community-staging/sdcc/PKGBUILD
new file mode 100644
index 000000000..fd9c0b002
--- /dev/null
+++ b/community-staging/sdcc/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 77318 2012-10-08 16:13:13Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Jose Negron <josenj.arch@mailnull.net>
+
+pkgname=sdcc
+pkgver=3.2.0
+pkgrel=2
+pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
+arch=('i686' '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)
+source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2)
+md5sums=('0808a9b4109d2ba6046ddd7b679a0012')
+
+build() {
+ cd $srcdir/$pkgname
+ ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/sdcc \
+ --libdir=/usr/lib/sdcc
+ make
+ 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
+}