aboutsummaryrefslogtreecommitdiffstats
path: root/community/libixion/APKBUILD
blob: 04a7d40edb83c4062b4f1611256e47684d10c44e (plain) (blame)
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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libixion
pkgver=0.16.1
pkgrel=0
pkgdesc="A general purpose formula parser & interpreter"
url="https://gitlab.com/ixion/ixion"
arch="all"
license="MPL-2.0"
makedepends="boost-dev mdds-dev"
checkdepends="bash"
subpackages="$pkgname-dev"
source="https://kohei.us/files/ixion/src/libixion-$pkgver.tar.xz
	fix-nullptr_t.patch
	"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

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

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="979c631e9536f6d2c3ae32f7892756ac8889d27c551d80eb9d519bf912bd323da4b6ecd363fe2719e74e04bc3661e5d56e03a582f68f5293ffcac59b74f4c7de  libixion-0.16.1.tar.xz
3f1887da7db0591bae7c7072a39624b16474be128c868816544ee554cb40501f10eafde9e1fb0e7ee519f719b6cc1f06113c942b27e1e86630756ec80d32d8ad  fix-nullptr_t.patch"