aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ffcall/APKBUILD
blob: ba41238232946cc1b1ac9d08510bde7eef4421d2 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ffcall
pkgver=1.10
pkgrel=0
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
url="http://www.gnu.org/software/libffcall/"
arch="x86_64 x86"
license="GPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://www.haible.de/bruno/gnu/ffcall-$pkgver.tar.gz"

_builddir="$srcdir"/ffcall-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/man \
		"$pkgdir"/usr/share/doc/ffcall \
		"$pkgdir"/usr/share/doc/doc
	make DESTDIR="$pkgdir" htmldir=/usr/share/doc/ffcall \
		install || return 1
}

md5sums="2db95007e901f3bc2ae7e5a9fe9ebea4  ffcall-1.10.tar.gz"
sha256sums="6f1b5b8fc84b2c0051637fb1e4e4f8b975f5f98bff8fe053c1992347baa4983d  ffcall-1.10.tar.gz"
sha512sums="dceb620907adae5bbbb52cf2d0b0c829242ad22adceb3186b7a887b7ba49e28b607c30179de6b5a0c46a90bd52f9963ce503ca0c69bc3ecf41e3556df094ddca  ffcall-1.10.tar.gz"