| 1 | # Description: GNU compression utility (replacement for compress) |
| 2 | # URL: http://www.gzip.org/ |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=gzip |
| 8 | version=1.4 |
| 9 | release=1 |
| 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | ./configure --build=$CHOST \ |
| 15 | --host=$CTARGET \ |
| 16 | --prefix=/usr \ |
| 17 | --mandir=/usr/man |
| 18 | make |
| 19 | make DESTDIR=$PKG install |
| 20 | |
| 21 | mkdir -p $PKG/bin |
| 22 | mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin |
| 23 | rm $PKG/usr/man/man1/{gunzip.1,zcat.1,zcmp.1} |
| 24 | ln -sf gzip.1.gz $PKG/usr/man/man1/gunzip.1.gz |
| 25 | ln -sf gzip.1.gz $PKG/usr/man/man1/zcat.1.gz |
| 26 | ln -sf zdiff.1.gz $PKG/usr/man/man1/zcmp.1.gz |
| 27 | # make uncompress a symlink to gunzip, since it will not work |
| 28 | # if / and /usr are on different file systems. |
| 29 | rm $PKG/usr/bin/uncompress |
| 30 | ln -s /bin/gunzip $PKG/usr/bin/uncompress |
| 31 | rm -r $PKG/usr/share |
| 32 | } |