core/gzip/Pkgfile

31 lines
846 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: GNU compression utility (replacement for compress)
2021-12-13 12:18:32 +01:00
# URL: https://www.gzip.org/
2021-09-04 14:31:18 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
2006-02-23 16:26:10 +01:00
name=gzip
2023-08-20 12:57:48 +02:00
version=1.13
2016-03-31 15:25:03 +02:00
release=1
2021-12-13 12:18:32 +01:00
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
2006-02-23 16:26:10 +01:00
build() {
2021-09-04 14:31:18 +02:00
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
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
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
2021-09-04 14:31:18 +02:00
rm -r $PKG/usr/share/info
2006-02-23 16:26:10 +01:00
}