diff options
author | J0WI <J0WI@users.noreply.github.com> | 2022-04-21 16:27:13 +0200 |
---|---|---|
committer | alice <alice@ayaya.dev> | 2022-04-21 14:34:01 +0000 |
commit | a8e37221e2769c494febe0e22d462f916797869a (patch) | |
tree | a007fcfa1af54922bdfa9069d4c2269fb0c4a07c | |
parent | 22eda1a6bb06b233688bf9aa9cf24423892fc322 (diff) | |
download | aports-a8e37221e2769c494febe0e22d462f916797869a.zip |
main/yajl: build with Ninja
-rw-r--r-- | main/yajl/APKBUILD | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/main/yajl/APKBUILD b/main/yajl/APKBUILD index a09ee3a7b14..8007ae3704d 100644 --- a/main/yajl/APKBUILD +++ b/main/yajl/APKBUILD @@ -1,12 +1,12 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=yajl pkgver=2.1.0 -pkgrel=3 +pkgrel=4 pkgdesc="Yet Another JSON Library (YAJL)" url="https://lloyd.github.io/yajl/" arch="all" license="MIT" -makedepends="cmake" +makedepends="cmake samurai" subpackages="$pkgname-dev $pkgname-tools" source="https://dev.alpinelinux.org/archive/yajl/yajl-$pkgver.tar.gz" @@ -38,20 +38,25 @@ snapshot() { } build() { - cmake -B build . \ + cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr - make -C build + cmake --build build } package() { - make install -C build DESTDIR="$pkgdir" + DESTDIR="$pkgdir" cmake --install build mkdir -p "$pkgdir"/usr/lib mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/ } +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + tools() { pkgdesc="JSON tools based on Yajl" mkdir -p "$subpkgdir"/usr/ @@ -59,4 +64,6 @@ tools() { } -sha512sums="857101d8b99be22bde3c21ec1921ffcbbcd14735ff420728855e064631e6c4c4ceaec40b0e5c8b6d8cba1b36fe1ace0738f8e917e2f992107559b17ddf73de50 yajl-2.1.0.tar.gz" +sha512sums=" +857101d8b99be22bde3c21ec1921ffcbbcd14735ff420728855e064631e6c4c4ceaec40b0e5c8b6d8cba1b36fe1ace0738f8e917e2f992107559b17ddf73de50 yajl-2.1.0.tar.gz +" |