pkgname=libdeflate pkgver=1.23 pkgrel=1 pkgdesc="Heavily optimized library for DEFLATE/zlib/gzip compression and decompression" arch=('x86_64') url="https://github.com/ebiggers/libdeflate" license=('MIT') depends=('glibc') makedepends=('cmake' 'ninja') source=(https://github.com/ebiggers/libdeflate/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(1ab18349b9fb0ce8a0ca4116bded725be7dcbfa709e19f6f983d99df1fb8b25f) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DLIBDEFLATE_BUILD_STATIC_LIB=OFF -DLIBDEFLATE_BUILD_TESTS=ON ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }