summaryrefslogtreecommitdiff
path: root/community/sdcc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sdcc/PKGBUILD')
-rw-r--r--community/sdcc/PKGBUILD20
1 files changed, 15 insertions, 5 deletions
diff --git a/community/sdcc/PKGBUILD b/community/sdcc/PKGBUILD
index 8b43b2ade..210848517 100644
--- a/community/sdcc/PKGBUILD
+++ b/community/sdcc/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 78263 2012-10-17 10:27:37Z allan $
+# $Id: PKGBUILD 91250 2013-05-20 17:00:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jose Negron <josenj.arch@mailnull.net>
pkgname=sdcc
-pkgver=3.2.0
-pkgrel=2
+pkgver=3.3.0
+pkgrel=1
pkgdesc="Retargettable ANSI C compiler (Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08)"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
@@ -14,15 +14,25 @@ optdepends=('python')
url="http://sdcc.sourceforge.net/"
options=(!strip)
source=(http://downloads.sourceforge.net/sourceforge/sdcc/$pkgname-src-$pkgver.tar.bz2)
-md5sums=('0808a9b4109d2ba6046ddd7b679a0012')
+md5sums=('c7c6aa75415580795ecc4fd31948e5ba')
+
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ sed -i 's|CC -E|CC -O2 -E|g' support/sdbinutils/libiberty/configure
+}
build() {
- cd $srcdir/$pkgname
+ cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr \
--includedir=/usr/include/sdcc \
--libdir=/usr/lib/sdcc
make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
make install DESTDIR=$pkgdir
if [ -d $pkgdir/usr/lib/lib ]; then