36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
/*
|
|
* zstd — Zstandard compression (curl/wget/brotli-class, and the de-facto
|
|
* distro compression standard).
|
|
*
|
|
* Built with its own Makefile (make lib + make install, PREFIX/DESTDIR).
|
|
*/
|
|
package "zstd" {
|
|
const version = "1.5.7"
|
|
const source = "https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz"
|
|
sha256 = "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"
|
|
license = "BSD-3-Clause"
|
|
|
|
provides = ["libzstd.a", "zstd"]
|
|
|
|
depends = [
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -o zstd-${version}.tar.gz ${source}
|
|
echo "eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3 zstd-${version}.tar.gz" | sha256sum -c -
|
|
tar xf zstd-${version}.tar.gz --strip-components=1
|
|
}
|
|
|
|
build {
|
|
make -j${jobs} lib
|
|
make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
make install PREFIX=${prefix} DESTDIR=${destdir}
|
|
find ${destdir} -name '*.la' -delete
|
|
find ${destdir} -name '*.so*' -delete
|
|
}
|
|
}
|