Commit a3bb032d authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Timo Teräs

main/libfastjson: modernize and add check

parent e68d3efe
......@@ -2,42 +2,36 @@
# Maintainer: Ashley Sommer <ashleysommer@gmail.com>
pkgname=libfastjson
pkgver=0.99.8
pkgrel=0
pkgrel=1
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
"
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
}
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
sh autogen.sh \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
|| return 1
make || return 1
--mandir=/usr/share/man
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="bd68705ab41d360582bb08b1f29be5b16f55d18674f26066cdd36c66a52a571873e013e31dbb0d21ea73684709a63d0f831be9eb12d8c6e9d8eaf5ec71ce6f18 libfastjson-0.99.8.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment