diff options
author | fauno <fauno@endefensadelsl.org> | 2018-01-06 19:31:57 -0300 |
---|---|---|
committer | fauno <fauno@endefensadelsl.org> | 2018-01-06 19:31:57 -0300 |
commit | 685d3ca91babdbb7e4efed88a75fe776a593b725 (patch) | |
tree | 0f1add3030cce7d571023522cbf9b78a11c3fc74 /libre/libffi-static/PKGBUILD | |
parent | b3fae2f65c48f17b2c5b534b768ca0607b9e800d (diff) | |
parent | 8161eec2a2b550802274afaf9b162195053814f2 (diff) | |
download | abslibre-685d3ca91babdbb7e4efed88a75fe776a593b725.tar.gz abslibre-685d3ca91babdbb7e4efed88a75fe776a593b725.tar.bz2 abslibre-685d3ca91babdbb7e4efed88a75fe776a593b725.zip |
Merge branch 'master' of git://git.parabola.nu/abslibre/abslibre
Diffstat (limited to 'libre/libffi-static/PKGBUILD')
-rw-r--r-- | libre/libffi-static/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libre/libffi-static/PKGBUILD b/libre/libffi-static/PKGBUILD new file mode 100644 index 000000000..14b5f5f6f --- /dev/null +++ b/libre/libffi-static/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer (Arch:libffi): Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor (Arch:libffi): Stéphane Gaudreault <stephane@archlinux.org> +# Contributor (Arch:libffi): Jan de Groot <jgc@archlinux.org> +# Maintainer: Luke Shumaker <lukeshu@parabola.nu> + +_pkgname=libffi +pkgname=libffi-static +pkgver=3.2.1 +pkgrel=2.parabola1 +pkgdesc='Portable foreign function interface library' +pkgdesc+=' (static libraries)' +arch=('x86_64') +arch+=('i686' 'armv7h') +url='http://sourceware.org/libffi/' +license=('MIT') +depends=("libffi=$pkgver") +options=('staticlibs') +checkdepends=('dejagnu') +source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz) +sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6') + +build() { + cd $_pkgname-$pkgver + ./configure --prefix=/usr --disable-static \ + --disable-shared --enable-static \ + --enable-pax_emutramp + make +} + +check() { + make -C $_pkgname-$pkgver check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + rm -vr -- \ + "$pkgdir/usr/lib"/libffi-*/ \ + "$pkgdir/usr/lib/pkgconfig/" \ + "$pkgdir/usr/share/info/" \ + "$pkgdir/usr/share/man/" +} |