aboutsummaryrefslogtreecommitdiffstats
path: root/main/libffi/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-04-01 18:34:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-04-01 18:34:12 +0000
commitc8e7f7dd27bf2d08c6b31120ba5c3a7eeb603afb (patch)
tree5b2e32b913b10d0a5d71ac86bf4934279c912bd0 /main/libffi/APKBUILD
parentaf4a4207bf40f053cc1800266177fb8101e16b7b (diff)
downloadaports-c8e7f7dd27bf2d08c6b31120ba5c3a7eeb603afb.tar.bz2
aports-c8e7f7dd27bf2d08c6b31120ba5c3a7eeb603afb.tar.xz
main/libffi: new aport
A portable, high level programming interface to various calling conventions http://sourceware.org/libffi"
Diffstat (limited to 'main/libffi/APKBUILD')
-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"