aboutsummaryrefslogtreecommitdiffstats
path: root/main/libffi/APKBUILD
blob: 39b3ba3a39c81220b41b3ddf166cec017b91b30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libffi
pkgver=3.0.9
pkgrel=1
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"