summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiacomo Vercesi2020-04-27 23:30:49 +0200
committerGiacomo Vercesi2020-04-27 23:30:49 +0200
commit656d4e09c6444f4f067bbf3dde12950c872b5c48 (patch)
treebcef9c1637a369b2a2740cf7d08f4fe525d0e1da
parent7eb905d13c729ddd99b83bf232ff791daff4fb1a (diff)
downloadaur-656d4e09c6444f4f067bbf3dde12950c872b5c48.tar.gz
Build lib32
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD20
2 files changed, 15 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e8028020757..e0c6969ccd4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,4 +1,4 @@
-pkgbase = libffi6
+pkgbase = lib32-libffi6
pkgdesc = A portable, high level programming interface to various calling conventions (ABI version 6)
pkgver = 3.2.1
pkgrel = 1
@@ -6,9 +6,10 @@ pkgbase = libffi6
arch = x86_64
license = MIT
checkdepends = dejagnu
+ makedepends = gcc-multilib
depends = glibc
source = https://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
sha1sums = 280c265b789e041c02e5c97815793dfc283fb1e6
-pkgname = libffi6
+pkgname = lib32-libffi6
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"
}