summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-02 08:23:05 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-02 08:23:05 +0200
commitd1f3d0f7ce2e69afdf69bfb0209b97c5589a5a68 (patch)
treedd7d3e9a1b7b15710f38b341590c72f0bec18b72
parente532d29d328fba052926a607725b0bd41c6aeccf (diff)
parentf12413cd3d1ac3bf77eef5b2e82689c1369a91dc (diff)
Merge branch 'master' of git+ssh://parabola-git/srv/git/abslibre-mips64el
-rw-r--r--extra/bin86/PKGBUILD11
-rw-r--r--extra/bin86/bin86-0.16.19-inttypes.patch13
2 files changed, 21 insertions, 3 deletions
diff --git a/extra/bin86/PKGBUILD b/extra/bin86/PKGBUILD
index a398fd4df..839cfcfbe 100644
--- a/extra/bin86/PKGBUILD
+++ b/extra/bin86/PKGBUILD
@@ -6,14 +6,16 @@ pkgname=bin86
pkgver=0.16.19
pkgrel=1
pkgdesc="A complete 8086 assembler and loader"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.debath.co.uk/"
depends=('glibc')
source=("http://www.debath.co.uk/dev86/$pkgname-$pkgver.tar.gz"
- bin86-0.16.17-x86_64-1.patch)
+ bin86-0.16.17-x86_64-1.patch
+ bin86-0.16.19-inttypes.patch)
md5sums=('0a20d79765a6855ce7c8c2d02b23a0f0'
- '92bdce7b0655cd2e9f83c83fc56d128e')
+ '92bdce7b0655cd2e9f83c83fc56d128e'
+ '98854f331f03d1f938c3b53eee31aaf8')
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -21,6 +23,9 @@ build() {
if [[ $CARCH = x86_64 ]]; then
patch -Np1 < "$srcdir/bin86-0.16.17-x86_64-1.patch"
fi
+ if [[ $CARCH = mips64el ]]; then
+ patch -Np1 < "$srcdir/bin86-0.16.19-inttypes.patch"
+ fi
make PREFIX=/usr
}
diff --git a/extra/bin86/bin86-0.16.19-inttypes.patch b/extra/bin86/bin86-0.16.19-inttypes.patch
new file mode 100644
index 000000000..0ab0bb97e
--- /dev/null
+++ b/extra/bin86/bin86-0.16.19-inttypes.patch
@@ -0,0 +1,13 @@
+--- bin86-0.16.19.orig/ld/x86_aout.h 2012-07-30 03:17:06.000000000 -0500
++++ bin86-0.16.19/ld/x86_aout.h 2013-05-01 18:18:59.553588866 -0500
+@@ -19,7 +19,9 @@
+ typedef int32_t Long;
+ #define __OUT_OK 1
+ #else
+-typedef char Long[4];
++#define __OUT_OK 1
++#include <inttypes.h>
++typedef int32_t Long;
+ #endif
+ #endif
+