summaryrefslogtreecommitdiff
path: root/gzip/Pkgfile
blob: d4554983701201eea24c7b6ed745c5f39b1471a1 (plain)
    1 # Description: GNU compression utility (replacement for compress)
    2 # URL: https://www.gzip.org/
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 
    5 name=gzip
    6 version=1.12
    7 release=1
    8 source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
    9 
   10 build() {
   11 	cd $name-$version
   12 	./configure --prefix=/usr
   13 	make
   14 	make DESTDIR=$PKG install
   15 
   16 	install -d $PKG/bin
   17 	mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
   18 
   19 	rm $PKG/usr/share/man/man1/{gunzip.1,zcat.1,zcmp.1}
   20 	ln -s gzip.1.gz  $PKG/usr/share/man/man1/gunzip.1.gz
   21 	ln -s gzip.1.gz  $PKG/usr/share/man/man1/zcat.1.gz
   22 	ln -s zdiff.1.gz $PKG/usr/share/man/man1/zcmp.1.gz
   23 
   24 	# make uncompress a symlink to gunzip, since the hardlink
   25 	# will not work if / and /usr are on different file systems.
   26 	rm $PKG/usr/bin/uncompress
   27 	ln -s /bin/gunzip $PKG/usr/bin/uncompress
   28 
   29 	rm -r $PKG/usr/share/info
   30 }

Generated by cgit