# $Id$ PNAME="gzip" PVER="1.4" PBUILD="r1" PCATEGORIE="app-arch" STATE="unstable" DESCRIPTION="Standard GNU compressor." HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_gnu ${PNAME} gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compilation with newer glibc (>=2.6.1) sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /bin || die make DESTDIR=${BINDIR} install || die # move some binaries to /bin mv ${BINDIR}{/usr,}/bin/gzip || die mv ${BINDIR}{/usr,}/bin/gunzip || die mv ${BINDIR}{/usr,}/bin/zcat || die mv ${BINDIR}{/usr,}/bin/uncompress || die # missing: gzcat mlink zcat /bin/gzcat || die # and the docs too minstalldocs \ AUTHORS COPYING ChangeLog INSTALL NEWS README \ README-alpha THANKS TODO algorithm.doc gzip.doc || die }