# Contributor: stef # Maintainer: André Klitzing pkgname=zstd pkgver=1.3.5 pkgrel=0 pkgdesc="Zstandard - Fast real-time compression algorithm" url="http://www.zstd.net" arch="all !armhf !armv7" license="BSD-3-Clause GPL-2.0-or-later" checkdepends="file" subpackages="$pkgname-static $pkgname-libs $pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/facebook/$pkgname/archive/v$pkgver.tar.gz allow-invoking-list-when-stdin-not-tty.patch fix-list-tests-with-stdin.patch" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" unset CPPFLAGS make MOREFLAGS="-O2" } check() { cd "$builddir" make test } package() { cd "$builddir" make PREFIX="/usr" DESTDIR="$pkgdir" install } static() { pkgdesc="zstd static library" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ } sha512sums="a5347b132d6b79e6a7f39a4546cafc5cf85e8d01b765477011008908035789e914b1093e2b2405c75086f05a7bc87e29b69e10252260d747c5c056ce16f91661 zstd-1.3.5.tar.gz 7d8bcf26b09270a41cd15d0d9f7b8d177e3fed152d7755558195d4dd0803bcb3d1568fb988bc0d4eff74b9053e42323ae1db2a114582af1731546faff214d5da allow-invoking-list-when-stdin-not-tty.patch 5966b58b35aa43557d0dc36c00c11e07d23fb91249c5e4ce32bcbc9e9de259e691ab2537fa09886c1a1635f1042a4e09f91a7907069a79302c9ee76c95c3809c fix-list-tests-with-stdin.patch"