2021-07-01 20:57:17 +03:00
|
|
|
#!/bin/sh
|
|
|
|
pkgver="todo"
|
|
|
|
|
|
|
|
pkg_install() {
|
2021-06-29 21:49:46 +03:00
|
|
|
prepare:
|
|
|
|
git clone https://git.savannah.gnu.org/git/gzip.git/
|
|
|
|
cd gzip
|
2021-07-01 20:57:17 +03:00
|
|
|
./configure --prefix=$1/usr --host=$1
|
|
|
|
make CC="${CC:-cc} -static"
|
|
|
|
make DESTDIR=$1 install
|
|
|
|
|
2021-06-29 21:49:46 +03:00
|
|
|
install -Dm755 pigz "$1/usr/bin/pigz"
|
|
|
|
install -Dm755 unpigz "$1/usr/bin/unpigz"
|
|
|
|
install -Dm644 pigz.1 "$1/usr/share/man/man1/pigz.1"
|
|
|
|
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"
|
2021-07-01 20:57:17 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_uninstall() {
|
|
|
|
make uninstall
|
|
|
|
}
|