repo/gzip/build

12 lines
373 B
Text
Raw Normal View History

2021-07-04 21:28:36 +03:00
wget -O gzip.tar.gz https://zlib.net/pigz/pigz-2.6.tar.gz
2021-07-07 06:51:43 +03:00
tar -xf ./gzip.tar.gz
2021-07-04 21:28:36 +03:00
cd gzip
make CC="${CC:-cc} -static"
mkdir -p "$1/usr/bin" "$1/usr/share/man/man1"
cp -f pigz unpigz "$1/usr/bin"
cp -f pigz.1 "$1/usr/share/man/man1"
ln -sf pigz "$1/usr/bin/gzip"
ln -sf pigz "$1/usr/bin/zcat"
ln -sf unpigz "$1/usr/bin/gunzip"
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"