aboutsummaryrefslogtreecommitdiffstats
path: root/main/jansson/APKBUILD
blob: 40e5ee145cc66b7f1dfd0a786c56e3c78f154a7c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jansson
pkgver=2.8
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/jansson-$pkgver.tar.bz2"

builddir="$srcdir"/jansson-$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
}

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="592e29db0903d3031ea5a4e5a22fe75c  jansson-2.8.tar.bz2"
sha256sums="cf4682f317e2cb3cd69090c8602771a93effd43ea5970cf1444f542af9c631c4  jansson-2.8.tar.bz2"
sha512sums="85bf880b1db2443ebc1409d83d7386b2894882c7fc71ca1d1ef10b72b1913ad6f461c104960fa25c92cfe11afbf146f9fb516b250c6eba70ca74621bb8d7477d  jansson-2.8.tar.bz2"