aboutsummaryrefslogtreecommitdiffstats
path: root/main/libfastjson/APKBUILD
blob: c4d2e968c765262c143829ac9e7e6ba4f1e4214a (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
# Contributor: Ashley Sommer <ashleysommer@gmail.com>
# Maintainer: Ashley Sommer <ashleysommer@gmail.com>
pkgname=libfastjson
pkgver=0.99.4
pkgrel=0
pkgdesc="A fork of the json-c library for rsyslog, optimized for liblognorm processing."
url="http://www.rsyslog.com/"
arch="all"
license="MIT"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-dbg"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/rsyslog/$pkgname/archive/v$pkgver.tar.gz
        "

_builddir="$srcdir"/$pkgname-$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"
        sh autogen.sh \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

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

md5sums="5a24c9adcd0bf5307c972de5e9ea4ce9  libfastjson-0.99.4.tar.gz"
sha256sums="03ef63dcc88417e71c19ce4436804159e3397e3a20d3529efef6a43c3bef5c8d  libfastjson-0.99.4.tar.gz"
sha512sums="99498ab4a1fd2bcca1d175795a94e355da0d48a546f6dc032ae68e83d7f970240ee0942a192bad9c7b8cd134720e17b949659b45b174bd44214044afa2cf690a  libfastjson-0.99.4.tar.gz"