diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-03 17:49:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-03 17:49:46 +0000 |
commit | bdc3cf9b7e9d6917c18a853552a117cccce77cd6 (patch) | |
tree | 5c813cb246adc67130bf28ee7df55ea26064bb6d /main/libffi | |
parent | a64a6472b2e8c85ea891cb59e2b857bc688a31c0 (diff) | |
download | aports-bdc3cf9b7e9d6917c18a853552a117cccce77cd6.tar.bz2 aports-bdc3cf9b7e9d6917c18a853552a117cccce77cd6.tar.xz |
main/libffi: modernize
Diffstat (limited to 'main/libffi')
-rw-r--r-- | main/libffi/APKBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD index 3ef63f4e90..24125f7706 100644 --- a/main/libffi/APKBUILD +++ b/main/libffi/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libffi pkgver=3.2.1 -pkgrel=4 +pkgrel=5 pkgdesc="A portable, high level programming interface to various calling conventions." url="http://sourceware.org/libffi" arch="all" @@ -26,21 +26,20 @@ build () { --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --enable-pax_emutramp \ - || return 1 - make || return 1 + --enable-pax_emutramp + make } package() { cd "$builddir" - make DESTDIR=""$pkgdir"" install || return 1 + make DESTDIR=""$pkgdir"" install install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname" - install -m644 LICENSE ""$pkgdir"/usr/share/licenses/$pkgname/" || return 1 + install -m644 LICENSE ""$pkgdir"/usr/share/licenses/$pkgname/" # fix location for headers # see also: https://github.com/libffi/libffi/issues/24 mkdir -p "$pkgdir"/usr/include/ mv "$pkgdir"/usr/lib/libffi-$pkgver/include/*.h \ - "$pkgdir"/usr/include/ || return 1 + "$pkgdir"/usr/include/ rmdir "$pkgdir"/usr/lib/libffi-$pkgver/include || true sed -i -e '/^includedir=/{s,=.*,=/usr/include,g}' \ "$pkgdir"/usr/lib/pkgconfig/libffi.pc |