core/gzip/Pkgfile

31 lines
891 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
2013-06-10 22:33:07 +02:00
version=1.6
2015-07-25 23:28:58 +02:00
release=2
2009-10-07 12:52:29 +02:00
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
cd $name-$version
2015-07-25 23:28:58 +02:00
./configure --prefix=/usr
make
make DESTDIR=$PKG install
2012-06-18 18:02:01 +02:00
install -d $PKG/bin
2007-04-14 10:00:22 +02:00
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
2013-06-10 22:33:07 +02:00
2015-07-25 23:28:58 +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
# 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
2015-07-25 23:28:58 +02:00
rm -r $PKG/usr/share/info
2006-02-23 16:26:10 +01:00
}