aboutsummaryrefslogtreecommitdiffstats
path: root/main/libfastjson
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-04-07 09:36:27 +0000
committerTimo Teräs <timo.teras@iki.fi>2018-04-09 11:24:07 +0000
commita3bb032dccb14429ce17f80bf8b067e0c25f3882 (patch)
treeedaf66edab56883423fbcbea9f807f27819a13d1 /main/libfastjson
parente68d3efe458b50b6a407ec7b28a8ac0258335db2 (diff)
downloadaports-a3bb032dccb14429ce17f80bf8b067e0c25f3882.tar.bz2
aports-a3bb032dccb14429ce17f80bf8b067e0c25f3882.tar.xz
main/libfastjson: modernize and add check
Diffstat (limited to 'main/libfastjson')
-rw-r--r--main/libfastjson/APKBUILD32
1 files changed, 13 insertions, 19 deletions
diff --git a/main/libfastjson/APKBUILD b/main/libfastjson/APKBUILD
index 9c4fb4463b..b43e741157 100644
--- a/main/libfastjson/APKBUILD
+++ b/main/libfastjson/APKBUILD
@@ -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"