# Contributor: Holger Jaekel # Maintainer: Holger Jaekel pkgname=libdeflate pkgver=1.18 pkgrel=1 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 --output-on-failure -j 4 } package() { DESTDIR="$pkgdir" cmake --install build } utils() { pkgdesc="Command line utilities for the DEFLATE library" amove /usr/bin } sha512sums=" 8a60fa5850f323389370f931579f85a094a35b3db334f2a2afa61bee39ecebc797e93c6fe5deb4178e19d83a1427533975dba6c05ce0b1db88b43c9268d09124 libdeflate-1.18.tar.gz "