# HG changeset patch # User Matthew Sheets # Date 1247222503 0 # Node ID 8548e74abb6a8ed22f8f8f8c0594b5d0e475fda8 # Parent 96c0636295130023a0315552d32c9c55ca50d7b6 Upgrade: cpio (2.9 to 2.10) diff -r 96c063629513 -r 8548e74abb6a cpio/receipt --- a/cpio/receipt Fri Jul 10 10:11:30 2009 +0000 +++ b/cpio/receipt Fri Jul 10 10:41:43 2009 +0000 @@ -1,10 +1,12 @@ # SliTaz package receipt. PACKAGE="cpio" -VERSION="2.9" +VERSION="2.10" 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" @@ -13,10 +15,13 @@ compile_rules() { cd $src - ./configure --prefix=/usr --bindir=/bin \ - --libexecdir=/usr/bin --mandir=/usr/share/man \ - --infodir=/usr/share/info $CONFIGURE_ARGS - make + ./configure --prefix=/usr \ + --bindir=/bin \ + --libexecdir=/usr/bin \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install } @@ -26,9 +31,15 @@ mkdir -p $fs/usr/share/locale cp -a $_pkg/bin $fs cp -a $_pkg/usr/bin $fs/usr - # Locale fr. - cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale - # Strip package. - strip -s $fs/bin/* - strip -s $fs/usr/bin/* } + +# Remove Busybox symlink before installing +pre_install() +{ + rm -f $1/bin/cpio +} + +post_remove() +{ + ln -s /bin/busybox /bin/cpio +}