aboutsummaryrefslogtreecommitdiffstats
path: root/main/libffi
diff options
context:
space:
mode:
Diffstat (limited to 'main/libffi')
-rw-r--r--main/libffi/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD
new file mode 100644
index 0000000000..3ef7415023
--- /dev/null
+++ b/main/libffi/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libffi
+pkgver=3.0.9
+pkgrel=0
+pkgdesc="A portable, high level programming interface to various calling conventions."
+url="http://sourceware.org/libffi"
+license="MIT"
+depends=
+makedepends="texinfo"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build () {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=""$pkgdir"" install || return 1
+ install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname"
+ install -m644 LICENSE ""$pkgdir"/usr/share/licenses/$pkgname/" || return 1
+}
+md5sums="1f300a7a7f975d4046f51c3022fa5ff1 libffi-3.0.9.tar.gz"