summaryrefslogtreecommitdiff
path: root/community/sdcc/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-08-02 15:48:44 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-08-02 15:48:44 +0200
commit72658c2308ab6c5ec52a590f6c7b9a2b389b7f29 (patch)
treeb949e009e881cbc19e64debea1068c56952b4b44 /community/sdcc/PKGBUILD
parent04770005a02cc2a41550a57143af22c9d951bf6f (diff)
parentf003ac1c96d76f4e3a2b93f988e1effce6771052 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/tp_smapi/PKGBUILD community/fish/PKGBUILD community/supertux/PKGBUILD extra/gvfs/PKGBUILD multilib/wine/PKGBUILD testing/e2fsprogs/PKGBUILD testing/iptables/PKGBUILD testing/krb5/PKGBUILD testing/lm_sensors/PKGBUILD testing/lm_sensors/healthd testing/lm_sensors/healthd.rc
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
}