42 lines
944 B
Bash
42 lines
944 B
Bash
# Template file for 'zstd'
|
|
pkgname=zstd
|
|
version=1.3.2
|
|
revision=1
|
|
short_desc="Fast real-time compression algorithm"
|
|
maintainer="Michael Gehring <mg@ebfe.org>"
|
|
makedepends="zlib-devel liblzma-devel"
|
|
checkdepends="gtest-devel"
|
|
license="BSD, GPL-2"
|
|
homepage="http://www.zstd.net"
|
|
distfiles="https://github.com/facebook/zstd/archive/v${version}.tar.gz"
|
|
checksum=ac5054a3c64e6510bc1ae890d05e3d271cc33ceebc9d06ac9f08105766d2798a
|
|
|
|
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
|
|
}
|
|
|
|
zstd-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|