2006-02-23 15:26:10 +00:00
|
|
|
# Description: GNU compression utility (replacement for compress)
|
2021-09-04 14:31:18 +02:00
|
|
|
# URL: http://www.gzip.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=gzip
|
2021-09-04 14:31:18 +02:00
|
|
|
version=1.11
|
2016-03-31 15:25:03 +02:00
|
|
|
release=1
|
2017-03-02 14:25:08 +01:00
|
|
|
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2021-09-04 14:31:18 +02:00
|
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2006-12-15 16:18:11 +01:00
|
|
|
|
2021-09-04 14:31:18 +02:00
|
|
|
install -d $PKG/bin
|
|
|
|
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
|
2013-06-10 22:33:07 +02:00
|
|
|
|
2021-09-04 14:31:18 +02:00
|
|
|
rm $PKG/usr/share/man/man1/{gunzip.1,zcat.1,zcmp.1}
|
|
|
|
ln -s gzip.1.gz $PKG/usr/share/man/man1/gunzip.1.gz
|
|
|
|
ln -s gzip.1.gz $PKG/usr/share/man/man1/zcat.1.gz
|
|
|
|
ln -s zdiff.1.gz $PKG/usr/share/man/man1/zcmp.1.gz
|
2007-04-14 14:24:30 +02:00
|
|
|
|
2021-09-04 14:31:18 +02:00
|
|
|
# make uncompress a symlink to gunzip, since the hardlink
|
|
|
|
# will not work if / and /usr are on different file systems.
|
|
|
|
rm $PKG/usr/bin/uncompress
|
|
|
|
ln -s /bin/gunzip $PKG/usr/bin/uncompress
|
2012-12-02 10:52:12 +01:00
|
|
|
|
2021-09-04 14:31:18 +02:00
|
|
|
rm -r $PKG/usr/share/info
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|