# SliTaz package receipt. PACKAGE="cpio" VERSION="2.11" CATEGORY="base-system" SHORT_DESC="GNU cpio archiver." MAINTAINER="pankso@slitaz.org" DEPENDS="glibc-base" BUILD_DEPENDS="slitaz-toolchain" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gnu.org/software/cpio/" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr \ --bindir=/bin \ --libexecdir=/usr/bin \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/locale cp -a $_pkg/bin $fs cp -a $_pkg/usr/bin $fs/usr } # Remove Busybox symlink before installing pre_install() { rm -f $1/bin/cpio } post_remove() { ln -s /bin/busybox /bin/cpio }