From f30b021aa44c099c1210a9bca06002f124d443e8 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Wed, 27 Dec 2017 07:44:57 +0000 Subject: user/yajl: new package --- user/yajl/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 user/yajl/APKBUILD diff --git a/user/yajl/APKBUILD b/user/yajl/APKBUILD new file mode 100644 index 000000000..4219b8c20 --- /dev/null +++ b/user/yajl/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Max Rees +pkgname=yajl +pkgver=2.1.0 +pkgrel=0 +pkgdesc="Yet Another JSON Library (YAJL)" +url="http://lloyd.github.com/yajl/" +arch="all" +license="ISC" +depends="" +makedepends="cmake" +install="" +subpackages="$pkgname-dev $pkgname-tools" +source="yajl-$pkgver.tar.gz::https://github.com/lloyd/yajl/archive/$pkgver.tar.gz" + +build() { + cd "$builddir" + cmake -DCMAKE_INSTALL_PREFIX="/usr" . + make +} + +package() { + cd "$builddir" + make install DESTDIR="$pkgdir" + mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/ +} + +check() { + cd "$builddir" + make test + # make test-api just checks the return status of gen-extra-close + # and also forkbombs, so elide that +} + +tools() { + pkgdesc="JSON tools based on Yajl" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + + +sha512sums="9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02 yajl-2.1.0.tar.gz" -- cgit v1.2.3-70-g09d2 From 5f824c77da86acdc23f078f2b95c97b97175a680 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 9 Jan 2018 02:40:09 -0600 Subject: user/yajl: add cmd:which checkdepends --- user/yajl/APKBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/user/yajl/APKBUILD b/user/yajl/APKBUILD index 4219b8c20..e03957785 100644 --- a/user/yajl/APKBUILD +++ b/user/yajl/APKBUILD @@ -8,6 +8,7 @@ arch="all" license="ISC" depends="" makedepends="cmake" +checkdepends="cmd:which" install="" subpackages="$pkgname-dev $pkgname-tools" source="yajl-$pkgver.tar.gz::https://github.com/lloyd/yajl/archive/$pkgver.tar.gz" -- cgit v1.2.3-70-g09d2