# Maintainer: Daryl Ronningen pkgname=zstd pkgver=1.5.5 pkgrel=1 pkgdesc="Zstandard - Fast real-time compression algorithm" arch=("x86_64") url="https://facebook.github.io/zstd/" license=("BSD" "GPL2") depends=("zlib-ng") makedepends=("cmake" "ninja") source=("https://github.com/facebook/zstd/releases/download/v$pkgver/zstd-$pkgver.tar.gz") sha256sums=("9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4") build() { cd $pkgname-$pkgver cmake -S build/cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DZSTD_ZLIB_SUPPORT=ON \ -DZSTD_BUILD_CONTRIB=ON \ -DZSTD_BUILD_TESTS=ON \ -DZSTD_PROGRAMS_LINK_SHARED=ON ninja -C build } package() { cd $pkgname-$pkgver DESTDIR=$pkgdir ninja -C build install mv $pkgdir/usr/lib64 $pkgdir/usr/lib }