summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a0c0086c1b6..0093ce59120 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
-# Maintainer: Terry Kerr <terry@oefd.ca>
+# Maintainer: Giacomo Vercesi <mrjackv@hotmail.it>
_pkgbasename=libffi
-pkgname=libffi6
+pkgname=lib32-libffi6
pkgver=3.2.1
pkgrel=1
pkgdesc="A portable, high level programming interface to various calling conventions (ABI version 6)"
@@ -10,13 +10,17 @@ url="http://sourceware.org/libffi"
license=('MIT')
depends=('glibc')
checkdepends=('dejagnu')
+makedepends=('gcc-multilib')
source=(https://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')
build() {
cd "$srcdir/$_pkgbasename-$pkgver"
- ./configure --prefix=/usr --disable-static \
- --enable-pax_emutramp
+ export CC="gcc -m32"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32 \
+ --libexecdir=/usr/lib32 --disable-static \
+ --enable-pax_emutramp
make
}
@@ -28,10 +32,10 @@ package() {
cd "$srcdir/$_pkgbasename-$pkgver"
make DESTDIR="$pkgdir" install
- mv "$pkgdir/usr/lib/libffi.la" "$pkgdir/usr/lib/libffi6.la"
- rm -rf "$pkgdir/usr/lib/$_pkgbasename-$pkgver"
- rm -f "$pkgdir/usr/lib/libffi.so"
- rm -rf "$pkgdir/usr/lib/pkgconfig" "$pkgdir/usr/share"
+ mv "$pkgdir/usr/lib32/libffi.la" "$pkgdir/usr/lib32/libffi6.la"
+ rm -rf "$pkgdir/usr/lib32/$_pkgbasename-$pkgver"
+ rm -f "$pkgdir/usr/lib32/libffi.so"
+ rm -rf "$pkgdir/usr/lib32/pkgconfig" "$pkgdir/usr/share"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}