aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ffcall/APKBUILD
blob: 8519c2b0b313dd6d6fd243bc51d328920f887dae (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=ffcall
pkgver=2.2
pkgrel=1
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
url="https://www.gnu.org/software/libffcall"
arch="all"
license="GPL-2.0-or-later"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/libffcall/libffcall-$pkgver.tar.gz"

builddir="$srcdir"/libffcall-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" htmldir=/usr/share/doc/ffcall install

	# One of the static libraries is not disabled by --disable-static
	# while all others are, so remove it here
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="b9d3ca4c67ab92915a8183d850153e585dcb58ceb2199a104426a7aae363d37017b1226440acd18a2db0cc207e044f71e932857189964261e8eaa6de5cef1731  libffcall-2.2.tar.gz"