summaryrefslogtreecommitdiff
path: root/user/yajl
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-09 05:44:49 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-09 05:44:49 +0000
commit73a0ca55d8be33cce8dde0c35e4273c9bbd6a01e (patch)
treecdf90ca6b5cba988f77e9f1539f6add967a98e27 /user/yajl
parent43b362a34677898baa14d2c17e184bee43a0a66d (diff)
downloadpackages-73a0ca55d8be33cce8dde0c35e4273c9bbd6a01e.tar.gz
packages-73a0ca55d8be33cce8dde0c35e4273c9bbd6a01e.tar.bz2
packages-73a0ca55d8be33cce8dde0c35e4273c9bbd6a01e.tar.xz
packages-73a0ca55d8be33cce8dde0c35e4273c9bbd6a01e.zip
user/*: Modernise / fix syntax / deps / metadata
Diffstat (limited to 'user/yajl')
-rw-r--r--user/yajl/APKBUILD20
1 files changed, 10 insertions, 10 deletions
diff --git a/user/yajl/APKBUILD b/user/yajl/APKBUILD
index 6a1f5991d..5be54b007 100644
--- a/user/yajl/APKBUILD
+++ b/user/yajl/APKBUILD
@@ -7,30 +7,30 @@ url="http://lloyd.github.com/yajl/"
arch="all"
license="ISC"
depends=""
-makedepends="cmake"
checkdepends="cmd:which"
+makedepends="cmake"
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" .
+ cmake \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ .
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
}
+package() {
+ make install DESTDIR="$pkgdir"
+ mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
+}
+
tools() {
pkgdesc="JSON tools based on Yajl"
mkdir -p "$subpkgdir"/usr/