aboutsummaryrefslogtreecommitdiffstats
path: root/main/libffi
diff options
context:
space:
mode:
Diffstat (limited to 'main/libffi')
-rw-r--r--main/libffi/APKBUILD13
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