summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortrya2015-06-08 23:25:43 +0200
committertrya2015-06-08 23:25:43 +0200
commit4a3199005b1311a76ff38aa01549613cf4610e6d (patch)
tree31df3651ff3f3a5769c739f9126f818fe5bac8f8
downloadaur-lib32-libffi5.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD36
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8adf15107e3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = lib32-libffi5
+ pkgdesc = A portable, high level programming interface to various calling conventions (ABI version 5)
+ pkgver = 3.0.10
+ pkgrel = 2
+ url = http://sourceware.org/libffi
+ arch = x86_64
+ license = MIT
+ checkdepends = dejagnu
+ makedepends = gcc-multilib
+ depends = lib32-glibc
+ options = !libtool
+ source = ftp://sourceware.org/pub/libffi/libffi-3.0.10.tar.gz
+ md5sums = 79390673f5d07a8fb342bc09b5055b6f
+
+pkgname = lib32-libffi5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..96743edbaa3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: trya <tryagainprod@gmail.com>
+
+_pkgbasename=libffi
+pkgname=lib32-libffi5
+pkgver=3.0.10
+pkgrel=2
+pkgdesc="A portable, high level programming interface to various calling conventions (ABI version 5)"
+arch=('x86_64')
+url="http://sourceware.org/libffi"
+license=('MIT')
+depends=('lib32-glibc')
+makedepends=('gcc-multilib')
+checkdepends=('dejagnu')
+options=('!libtool')
+source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
+md5sums=('79390673f5d07a8fb342bc09b5055b6f')
+
+build() {
+ cd "$srcdir/$_pkgbasename-$pkgver"
+
+ export CC="gcc -m32"
+
+ ./configure --prefix=/usr --libdir=/usr/lib32 --libexecdir=/usr/lib32
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgbasename-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ mv "$pkgdir/usr/lib32/libffi.a" "$pkgdir/usr/lib32/libffi5.a"
+ 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"
+}