smlinux/base/pigz/pigz.SMBuild
PktSurf 21c2f83913 Rewrote CFLAGS for base/{parted.pciutils}
Discarded unnecessary build options in base/{sysstat,texinfo,tofrodos,unzip,util-linux,wayland-protocols,xmlto,zlib}
base/which is now statically-linked
2023-03-17 14:19:05 +05:30

34 lines
815 B
Text
Executable file

app=pigz
version=2.4
build=1sml
homepage="https://www.zlib.net/pigz/"
download="https://www.zlib.net/pigz/pigz-$version.tar.gz"
desc="Multi-threaded gzip alternative to minimise compression time"
requires="zlib"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
make CFLAGS="$CFLAGS"
install -Dm 755 pigz $pkg/bin/pigz
install -Dm 755 unpigz $pkg/bin/unpigz
install -Dm 644 pigz.1 $pkg/share/man/man1/pigz.1
cp README $pkgdocs/
cp zopfli/COPYING $pkgdocs/COPYING.zopfli
cp zopfli/README $pkgdocs/README.zopfli
mkfinalpkg
}
sha512sums="
c9e3b42ba332959ee212085d1544923e4e46a0ea7cc0064e115f2a78ce8f4555d209926ba64404ca1255ab7b1be073a5446d53b54574ecb85a57b58ff994979b pigz-2.4.tar.lz
"