summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-01-09 02:40:21 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-01-09 02:40:21 -0600
commitcee386a7d341f6ad530f58bd7ec2785b935cda79 (patch)
tree376824e8e3f752eacb675facd2c734c5fe38c1d5 /user
parent744f3c131567e4b3e22c8f91bd5083d329434bb5 (diff)
parent5f824c77da86acdc23f078f2b95c97b97175a680 (diff)
downloadpackages-cee386a7d341f6ad530f58bd7ec2785b935cda79.tar.gz
packages-cee386a7d341f6ad530f58bd7ec2785b935cda79.tar.bz2
packages-cee386a7d341f6ad530f58bd7ec2785b935cda79.tar.xz
packages-cee386a7d341f6ad530f58bd7ec2785b935cda79.zip
Merge user/yajl from @sroracle
Diffstat (limited to 'user')
-rw-r--r--user/yajl/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/yajl/APKBUILD b/user/yajl/APKBUILD
new file mode 100644
index 000000000..e03957785
--- /dev/null
+++ b/user/yajl/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Max Rees <maxcrees@me.com>
+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"
+checkdepends="cmd:which"
+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"