mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:44:37 +08:00
34 lines
774 B
Bash
34 lines
774 B
Bash
|
|
pkgname=zstd
|
|
pkgver=1.3.3
|
|
pkgrel=1
|
|
pkgdesc='Zstandard - Fast real-time compression algorithm'
|
|
arch=(x86_64)
|
|
url='http://www.zstd.net/'
|
|
license=(BSD GPL2)
|
|
depends=(zlib xz lz4)
|
|
makedepends=(gtest)
|
|
source=(zstd-$pkgver.tar.gz::https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz)
|
|
sha1sums=('4bbdc23ab3d4fa18b3b7bd84900b77d554b96dd2')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
make
|
|
make zstdmt
|
|
make -C contrib/pzstd
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make -C tests test-zstd
|
|
make -C contrib/pzstd test
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make PREFIX=/usr DESTDIR="$pkgdir/" install
|
|
install -Dm755 zstdmt "$pkgdir/usr/bin/zstdmt"
|
|
install -Dm755 contrib/pzstd/pzstd "$pkgdir/usr/bin/pzstd"
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|