#!/bin/bash # gzip # # Douglas Thrift # # $Id$ name=gzip version=1.3.9 revision=0 categories=(base archivers) description='Compression utility designed to be a replacement for compress' url='http://www.gnu.org/software/gzip/gzip.html' depends=('base/glibc') sources=(`site_gnu` gzip.patch) function build() { gnu_patch gzip.patch || return $? gnu_configure --prefix=/usr --bindir=/bin --infodir=/usr/share/info --mandir=/usr/share/man || return $? rm -v $package/bin/z*grep $package/usr/share/man/man1/z*grep.1 || return $? mkdir -v $package/usr/bin || return $? mv -v $package/bin/!(gunzip|gzip|zcat) $package/usr/bin || return $? for file in {,un}compress; do ln -v $package/bin/gzip $package/bin/$file || return $? done }