summaryrefslogtreecommitdiff
path: root/multilib/dev86/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-25 01:42:20 -0700
committerroot <root@rshg054.dnsready.net>2012-10-25 01:42:20 -0700
commita3b55a0c47a00ac40bc00a4ce87d93f809273840 (patch)
tree6fcc1360f835115b132c35ca978b1f804540a372 /multilib/dev86/PKGBUILD
parent120df4e0db159525806a9b33364483e76f9d51d3 (diff)
Thu Oct 25 01:42:05 PDT 2012
Diffstat (limited to 'multilib/dev86/PKGBUILD')
-rw-r--r--multilib/dev86/PKGBUILD40
1 files changed, 15 insertions, 25 deletions
diff --git a/multilib/dev86/PKGBUILD b/multilib/dev86/PKGBUILD
index bde7ba3be..5175e7173 100644
--- a/multilib/dev86/PKGBUILD
+++ b/multilib/dev86/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 59310 2011-11-23 10:19:34Z spupykin $
+# $Id: PKGBUILD 78764 2012-10-24 11:32:14Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# Contributor: Suat SARIALP <muhendis.suat@gmail.com>
pkgname=dev86
-pkgver=0.16.18
-pkgrel=3
+pkgver=0.16.19
+pkgrel=1
pkgdesc="Simple C compiler to generate 8086 code"
arch=('i686' 'x86_64')
url="http://www.debath.co.uk/dev86/"
@@ -18,34 +18,24 @@ else
fi
options=('!libtool' '!strip' '!makeflags')
source=(http://www.debath.co.uk/dev86/Dev86src-$pkgver.tar.gz
- dev86-pic.patch
- dev86-0.16.17-fortify.patch)
-md5sums=('f2e06b547397383b2b2650b9c4fd9bab'
- '1b750c5561a4bde5f83f65e5827feb73'
- '07238f9203c6528ea1e34198e771ea12')
+ mandir.patch
+ copt.patch)
+md5sums=('442e98e1afa23fe00d40c5a996385942'
+ '509df653dec8956faf1a40a8c544d9ce'
+ '32839371e28c1a04477df883e970d6cd')
build() {
cd $srcdir/$pkgname-$pkgver
- patch -Np0 -i $srcdir/dev86-pic.patch
- patch -Np1 -i $srcdir/dev86-0.16.17-fortify.patch
- if [ "${CARCH}" = "x86_64" ]; then
- # x86_64 fix
- sed -i.orig -e 's,alt-libs elksemu,alt-libs,' \
- -e 's,install-lib install-emu,install-lib,' \
- $srcdir/$pkgname-$pkgver/makefile.in
- sed -i -e "s/-O2 -g/-O2 -g -m32/" makefile.in
- sed -i 's|^LDFLAGS.*=$|LDFLAGS=-m32|' makefile.in
- fi
+ patch -p1 <$srcdir/mandir.patch
+ patch -p1 <$srcdir/copt.patch
+ echo 'quit' | make PREFIX=/usr DIST="$pkgdir"
+}
- unset CFLAGS
- unset LDFLAGS
- unset CPPFLAGS
- unset CXXFLAGS
+package() {
+ cd $srcdir/$pkgname-$pkgver
- make PREFIX=/usr DIST="$pkgdir"
make install-all DIST="$pkgdir"
- mkdir -p $pkgdir/usr/share
- mv $pkgdir/usr/man $pkgdir/usr/share
+
# remove all the stuff supplied by bin86
rm $pkgdir/usr/bin/{as,ld,nm,objdump,size}86
rm $pkgdir/usr/share/man/man1/{as,ld}86.1