summaryrefslogtreecommitdiff
path: root/community/sdcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sdcc/PKGBUILD')
-rw-r--r--community/sdcc/PKGBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/community/sdcc/PKGBUILD b/community/sdcc/PKGBUILD
index d1358029e..5eac9b6df 100644
--- a/community/sdcc/PKGBUILD
+++ b/community/sdcc/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 61264 2011-12-27 15:33:34Z spupykin $
+# $Id: PKGBUILD 74603 2012-07-31 12:45:11Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jose Negron <josenj.arch@mailnull.net>
pkgname=sdcc
-pkgver=3.1.0
+pkgver=3.2.0
pkgrel=1
pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
arch=('i686' 'x86_64' 'mips64el')
@@ -14,20 +14,19 @@ optdepends=('python')
url="http://sdcc.sourceforge.net/"
options=(!strip)
source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2)
-md5sums=('92202e970071a8b506fea62a913bd2d2')
+md5sums=('0808a9b4109d2ba6046ddd7b679a0012')
build() {
cd $srcdir/$pkgname
- LDFLAGS="-lm" ./configure --prefix=$pkgdir/usr
-
- # gcc -O2 bug workaround
- [ $CARCH == "i686" ] && (
- cd src &&
- make SDCCy.h &&
- gcc -g -O0 -I. -I.. -I./../support/util -c SDCCicode.c -o SDCCicode.o
- )
-
+ ./configure \
+ --prefix=/usr \
+ --includedir=/usr/include/sdcc \
+ --libdir=/usr/lib/sdcc
make
- make install
- strip $pkgdir/usr/bin/* || true
+ 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
}