# SliTaz package receipt. PACKAGE="gzip" VERSION="1.4" CATEGORY="system-tools" SHORT_DESC="Data compression program" MAINTAINER="erjo@slitaz.org" DEPENDS="glibc-base" BUILD_DEPENDS="glibc-dev" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/gzip/" WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $_pkg/usr/bin/gzip $fs/usr/bin cp -a $_pkg/usr/bin/gunzip $fs/usr/bin } # Pre and post install commands for Tazpkg. # We must remove all Busybox symlink before installing. # pre_install() { local root root=$1 echo "Processing pre-install commands..." echo -n "Removing all Busybox replaced utils... " rm -f $root/bin/gzip rm -f $root/bin/gunzip status } post_remove() { ln -s $1/bin/busybox $1/bin/gzip ln -s $1/bin/busybox $1/bin/gunzip }