core/gzip/Pkgfile

33 lines
956 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: GNU compression utility (replacement for compress)
# URL: http://www.gzip.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
2006-02-23 16:26:10 +01:00
name=gzip
2007-04-14 10:00:22 +02:00
version=1.3.12
2007-08-30 10:10:13 +02:00
release=3
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
$name-futimens.patch)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2007-08-30 10:10:13 +02:00
patch -p1 -i $SRC/$name-futimens.patch
./configure --prefix=/usr --mandir=/usr/man
make
make DESTDIR=$PKG install
mkdir -p $PKG/bin
2007-04-14 10:00:22 +02:00
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
rm $PKG/usr/man/man1/{gunzip.1,zcat.1,zcmp.1}
ln -sf gzip.1.gz $PKG/usr/man/man1/gunzip.1.gz
ln -sf gzip.1.gz $PKG/usr/man/man1/zcat.1.gz
ln -sf zdiff.1.gz $PKG/usr/man/man1/zcmp.1.gz
2007-04-14 10:00:22 +02:00
# make uncompress a symlink to gunzip, since it will not work
# if / and /usr are on different file systems.
rm $PKG/usr/bin/uncompress
ln -s /bin/gunzip $PKG/usr/bin/uncompress
2007-04-14 10:00:22 +02:00
rm -r $PKG/usr/share
2006-02-23 16:26:10 +01:00
}