author | Sergej Pupykin
<spupykin@archlinux.org> 2012-07-30 19:11:53 UTC |
committer | Sergej Pupykin
<spupykin@archlinux.org> 2012-07-30 19:11:53 UTC |
parent | fb5553a7d9b38e264d47e1b732525780ca70559d |
PKGBUILD | +7 | -13 |
diff --git a/PKGBUILD b/PKGBUILD index 2150c07..1c0b1dc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # 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') @@ -13,20 +13,14 @@ 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 }