summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Kerr2020-04-11 10:07:27 -0400
committerTerry Kerr2020-04-11 10:07:27 -0400
commit7eb905d13c729ddd99b83bf232ff791daff4fb1a (patch)
tree1d3feb4dba57e48a2243569a426ce719141bdefc
downloadaur-7eb905d13c729ddd99b83bf232ff791daff4fb1a.tar.gz
initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD37
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e8028020757
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = libffi6
+ pkgdesc = A portable, high level programming interface to various calling conventions (ABI version 6)
+ pkgver = 3.2.1
+ pkgrel = 1
+ url = http://sourceware.org/libffi
+ arch = x86_64
+ license = MIT
+ checkdepends = dejagnu
+ depends = glibc
+ source = https://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
+ sha1sums = 280c265b789e041c02e5c97815793dfc283fb1e6
+
+pkgname = libffi6
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a0c0086c1b6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Terry Kerr <terry@oefd.ca>
+
+_pkgbasename=libffi
+pkgname=libffi6
+pkgver=3.2.1
+pkgrel=1
+pkgdesc="A portable, high level programming interface to various calling conventions (ABI version 6)"
+arch=('x86_64')
+url="http://sourceware.org/libffi"
+license=('MIT')
+depends=('glibc')
+checkdepends=('dejagnu')
+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
+ make
+}
+
+check() {
+ make -C $_pkgbasename-$pkgver check
+}
+
+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"
+
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}