core/gzip/Pkgfile

31 lines
882 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
2009-10-07 12:52:29 +02:00
version=1.3.13
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
./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
}