summaryrefslogtreecommitdiff
path: root/libre/libffi-static/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-13 16:17:44 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-16 10:22:52 -0300
commit53e40a641da67d90754c02053fd8367eaaea27df (patch)
tree82431ae10658070cffe8ded2cf9508fa1712b21f /libre/libffi-static/PKGBUILD
parent0a7a56e0e5954a3414e0a7763581949edcc20c8f (diff)
downloadabslibre-53e40a641da67d90754c02053fd8367eaaea27df.tar.gz
abslibre-53e40a641da67d90754c02053fd8367eaaea27df.tar.bz2
abslibre-53e40a641da67d90754c02053fd8367eaaea27df.zip
libffi-static: add new package to [libre]
Diffstat (limited to 'libre/libffi-static/PKGBUILD')
-rw-r--r--libre/libffi-static/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/libre/libffi-static/PKGBUILD b/libre/libffi-static/PKGBUILD
new file mode 100644
index 000000000..895b176d7
--- /dev/null
+++ b/libre/libffi-static/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libffi
+
+_pkgname=libffi
+pkgname=libffi-static
+pkgver=3.2.1
+pkgrel=1
+pkgdesc='Portable foreign function interface library (static libraries only)'
+arch=('i686' 'x86_64' 'armv7h')
+url='http://sourceware.org/libffi/'
+license=('MIT')
+depends=('libffi')
+checkdepends=('dejagnu')
+options=('staticlibs')
+source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
+sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure --prefix=/usr --enable-static \
+ --enable-pax_emutramp
+ make
+}
+
+check() {
+ make -C $_pkgname-$pkgver check
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # remove unused files
+ rm -vr ${pkgdir}/usr/{lib/{libffi-${pkgver},pkgconfig},share}
+ rm -v ${pkgdir}/usr/lib/libffi.so*
+}