aports/community/libdeflate/APKBUILD
Bart Ribbers 44ce39a091 */*: remove unnecessary --output-on-failure
We set OUTPUT_ON_FAILURE by default nowadays so this argument is
unnecessary
2025-03-19 15:41:30 +00:00

50 lines
1.1 KiB
Text

# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=libdeflate
pkgver=1.23
pkgrel=0
pkgdesc="Library for fast, whole-buffer DEFLATE-based compression and decompression"
url="https://github.com/ebiggers/libdeflate"
arch="all"
license="MIT"
makedepends="
cmake
samurai
"
checkdepends="
zlib-dev
"
subpackages="
$pkgname-static
$pkgname-dev
$pkgname-utils
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/ebiggers/libdeflate/archive/refs/tags/v$pkgver.tar.gz
"
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLIBDEFLATE_BUILD_TESTS="$(want_check && echo ON || echo OFF)" \
-DLIBDEFLATE_USE_SHARED_LIB=ON
cmake --build build
}
check() {
ctest --test-dir build -j 4
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
utils() {
pkgdesc="Command line utilities for the DEFLATE library"
amove /usr/bin
}
sha512sums="
c1effb9c5ee8d65bc12ae3d0669a4a394acace13cc146300ed24a7f12a0ec058f66729e1ffbae268711bdcc4151143752ab2d56a099dd6394b2735e8e2f1b671 libdeflate-1.23.tar.gz
"