d78cb0d201
some packages were dropped but their maintainer= was not updated in template. this will help new maintainers adopt these packages. -> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Template file for 'zstd'
|
|
pkgname=zstd
|
|
version=1.4.3
|
|
revision=1
|
|
bootstrap=yes
|
|
makedepends="zlib-devel liblzma-devel liblz4-devel"
|
|
checkdepends="gtest-devel"
|
|
short_desc="Fast real-time compression algorithm - CLI tool"
|
|
maintainer="Orphaned <orphan@voidlinux.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=5eda3502ecc285c3c92ee0cc8cd002234dee39d539b3f692997a0e80de1d33de
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
make ${makejobs} -C contrib/pzstd
|
|
}
|
|
|
|
do_check() {
|
|
# using the test target is too expensive
|
|
make ${makejobs} shortest
|
|
make ${makejobs} -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"
|
|
}
|
|
}
|