aboutsummaryrefslogtreecommitdiffstats
path: root/main/jansson/APKBUILD
blob: 195abb4fff51f3f8bb237036dc785277a1ffcfb8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jansson
pkgver=2.9
pkgrel=0
pkgdesc="lightweight JSON library"
url="http://www.digip.org/jansson/"
arch="all"
license="MIT"
depends=""
subpackages="$pkgname-dev"
source="http://www.digip.org/jansson/releases/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

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 || return 1
}

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

md5sums="4b9d8fe6690ae3f10a227165bc02b696  jansson-2.9.tar.bz2"
sha256sums="77094fc1e113da0e2e65479488a0719f859b8f5bde3a6a0da88a1c73a88b5698  jansson-2.9.tar.bz2"
sha512sums="ba6d00c8d6b109b825d003f9b75d9ec8e6bfb9cfc568062312df8710e8f9415893094dcea4bb82f9bca9566b9d226d165710d99a3fa445e18dd151c1edbd6ba5  jansson-2.9.tar.bz2"