aboutsummaryrefslogtreecommitdiffstats
path: root/community/libixion/APKBUILD
blob: a0ba2ce420a32f087495e20d839d8e52993ca146 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libixion
pkgver=0.12.2
pkgrel=1
pkgdesc="a general purpose formula parser & interpreter"
url="https://gitlab.com/ixion/ixion"
arch="all"
license="MPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev boost-dev mdds-dev"
install=""
subpackages="$pkgname-dev"
source="http://kohei.us/files/ixion/src/libixion-$pkgver.tar.xz"
builddir="$srcdir/libixion-$pkgver"

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev || return 1
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="50873fec72f7f74bb0c0c216ee092d32  libixion-0.12.2.tar.xz"
sha256sums="8b44008836bb4e1a3dff4d3e40afec6c73037e3518e72cc85b5cc675fbc2daae  libixion-0.12.2.tar.xz"
sha512sums="0a85120a08c79c73a252a997c8b3df461fe1f8ce8b2334aee0e50bfd887a440a220b44922edd18fbd402b1c8ea8be629e6181493bc618eda198f35159813ddcd  libixion-0.12.2.tar.xz"