55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
# Template file for 'zstd'
|
|
pkgname=zstd
|
|
version=1.3.5
|
|
revision=1
|
|
short_desc="Fast real-time compression algorithm - CLI tool"
|
|
makedepends="zlib-devel liblzma-devel"
|
|
checkdepends="gtest-devel"
|
|
maintainer="Michael Gehring <mg@ebfe.org>"
|
|
license="BSD-3-Clause, GPL-2.0-or-later"
|
|
homepage="http://www.zstd.net"
|
|
distfiles="https://github.com/facebook/zstd/archive/v${version}.tar.gz"
|
|
checksum=d6e1559e4cdb7c4226767d4ddc990bff5f9aab77085ff0d0490c828b025e2eea
|
|
|
|
do_build() {
|
|
make
|
|
make -C contrib/pzstd
|
|
}
|
|
|
|
do_check() {
|
|
# using the test target is too expensive
|
|
make shortest
|
|
make -C contrib/pzstd tests check
|
|
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR="${DESTDIR}" install
|
|
make -C contrib/pzstd PREFIX=/usr DESTDIR="${DESTDIR}" install
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libzstd_package() {
|
|
short_desc="Fast real-time compression algorithm"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libzstd-devel_package() {
|
|
replaces="zstd-devel<${version}_${revision}"
|
|
short_desc="Fast real-time compression algorithm - development files"
|
|
depends="libzstd-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
|
|
zstd-devel_package() {
|
|
build_style=meta
|
|
short_desc="Fast real-time compression algorithm - development files (transitional dummy package)"
|
|
depends="libzstd-devel>=${version}_${revision}"
|
|
}
|