diff options
Diffstat (limited to 'extra/bin86')
-rw-r--r-- | extra/bin86/PKGBUILD | 11 | ||||
-rw-r--r-- | extra/bin86/bin86-0.16.19-inttypes.patch | 13 |
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 + |