This commit is contained in:
2026-08-18 18:59:25 -04:00
parent e65dcbb790
commit 815160cfd7
17 changed files with 593 additions and 10 deletions
+35
View File
@@ -0,0 +1,35 @@
/*
* 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
}
}