APKBUILD 963 Bytes
Newer Older
1 2 3
# Contributor: Ashley Sommer <ashleysommer@gmail.com>
# Maintainer: Ashley Sommer <ashleysommer@gmail.com>
pkgname=libfastjson
4
pkgver=0.99.8
Leo's avatar
Leo committed
5
pkgrel=2
6
pkgdesc="A fork of the json-c library for rsyslog, optimized for liblognorm processing."
Leo's avatar
Leo committed
7
url="https://www.rsyslog.com/"
8 9
arch="all"
license="MIT"
10 11
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-dbg"
12
source="$pkgname-$pkgver.tar.gz::https://github.com/rsyslog/$pkgname/archive/v$pkgver.tar.gz"
13

Leo's avatar
Leo committed
14 15 16 17
prepare() {
	cd "$builddir"
	./autogen.sh
}
18 19

build() {
Leo's avatar
Leo committed
20 21
	cd "$builddir"
	./configure \
22 23 24 25
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
Leo's avatar
Leo committed
26 27
		--mandir=/usr/share/man \
		--disable-static
28 29 30 31 32 33
	make
}

check() {
	cd "$builddir"
	make check
34 35 36
}

package() {
37 38
	cd "$builddir"
	make DESTDIR="$pkgdir" install
39 40
}

41
sha512sums="bd68705ab41d360582bb08b1f29be5b16f55d18674f26066cdd36c66a52a571873e013e31dbb0d21ea73684709a63d0f831be9eb12d8c6e9d8eaf5ec71ce6f18  libfastjson-0.99.8.tar.gz"