mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 05:37:01 +02:00
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'zstd'
|
|
# Don't forget to rebuild 'python3-zstandard' which depends on API version.
|
|
pkgname=zstd
|
|
version=1.5.7
|
|
revision=1
|
|
bootstrap=yes
|
|
makedepends="zlib-devel liblzma-devel liblz4-devel"
|
|
checkdepends="gtest-devel tar"
|
|
short_desc="Fast real-time compression algorithm - CLI tool"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause, GPL-2.0-or-later"
|
|
homepage="https://facebook.github.io/zstd/"
|
|
changelog="https://raw.githubusercontent.com/facebook/zstd/dev/CHANGELOG"
|
|
distfiles="https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz"
|
|
checksum=eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3
|
|
|
|
do_build() {
|
|
make ${makejobs} PREFIX=/usr lib-mt
|
|
make ${makejobs} PREFIX=/usr -C programs zstd-dll LIB_BINDIR=../lib
|
|
make ${makejobs} PREFIX=/usr -C contrib/pzstd
|
|
}
|
|
|
|
do_check() {
|
|
# using the test target is too expensive
|
|
make ${makejobs} check
|
|
make -j 1 -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"
|
|
}
|
|
}
|