Date: Friday, January 8, 2021 @ 03:26:18 Author: allan Revision: 405708
archrelease: copy trunk to testing-x86_64 Added: zstd/repos/testing-x86_64/ zstd/repos/testing-x86_64/PKGBUILD (from rev 405707, zstd/trunk/PKGBUILD) ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Copied: zstd/repos/testing-x86_64/PKGBUILD (from rev 405707, zstd/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2021-01-08 03:26:18 UTC (rev 405708) @@ -0,0 +1,35 @@ +# Maintainer: Bartłomiej Piotrowski <bpiotrow...@archlinux.org> +# Contributor: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Johan Förberg <jo...@forberg.se> + +pkgname=zstd +pkgver=1.4.8 +pkgrel=1 +pkgdesc='Zstandard - Fast real-time compression algorithm' +arch=(x86_64) +url='https://facebook.github.io/zstd/' +license=(BSD GPL2) +depends=(zlib xz lz4) +makedepends=(gtest) +source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst) +sha256sums=('c7ea10e20dd61b457220455e3cf553069987b968b7c63d1b9d46acbdb45623eb') + +build() { + cd $pkgname-$pkgver + make + make -C contrib/pzstd +} + +check() { + cd $pkgname-$pkgver + make check + make -C contrib/pzstd test +} + +package() { + cd $pkgname-$pkgver + make PREFIX=/usr DESTDIR="$pkgdir/" install + ln -sf /usr/bin/zstd "$pkgdir/usr/bin/zstdmt" + install -Dm755 contrib/pzstd/pzstd "$pkgdir/usr/bin/pzstd" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}