31 lines
897 B
Plaintext
31 lines
897 B
Plaintext
# Description: GNU compression utility (replacement for compress)
|
|
# URL: http://www.gzip.org/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=gzip
|
|
version=1.8
|
|
release=1
|
|
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
./configure --prefix=/usr
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/bin
|
|
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
|
|
|
|
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
|
|
|
|
rm -r $PKG/usr/share/info
|
|
}
|