diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-13 16:17:44 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-04-16 10:22:52 -0300 |
commit | 53e40a641da67d90754c02053fd8367eaaea27df (patch) | |
tree | 82431ae10658070cffe8ded2cf9508fa1712b21f /libre/libffi-static/PKGBUILD | |
parent | 0a7a56e0e5954a3414e0a7763581949edcc20c8f (diff) | |
download | abslibre-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/PKGBUILD | 36 |
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* +} |