wok-current rev 3668
Upgrade: cpio (2.9 to 2.10)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Fri Jul 10 10:41:43 2009 +0000 (2009-07-10) |
parents | 96c063629513 |
children | 7a46cf13f72a |
files | cpio/receipt |
line diff
1.1 --- a/cpio/receipt Fri Jul 10 10:11:30 2009 +0000 1.2 +++ b/cpio/receipt Fri Jul 10 10:41:43 2009 +0000 1.3 @@ -1,10 +1,12 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="cpio" 1.7 -VERSION="2.9" 1.8 +VERSION="2.10" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="GNU cpio archiver." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 +DEPENDS="glibc-base" 1.13 +BUILD_DEPENDS="slitaz-toolchain" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://www.gnu.org/software/cpio/" 1.16 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.17 @@ -13,10 +15,13 @@ 1.18 compile_rules() 1.19 { 1.20 cd $src 1.21 - ./configure --prefix=/usr --bindir=/bin \ 1.22 - --libexecdir=/usr/bin --mandir=/usr/share/man \ 1.23 - --infodir=/usr/share/info $CONFIGURE_ARGS 1.24 - make 1.25 + ./configure --prefix=/usr \ 1.26 + --bindir=/bin \ 1.27 + --libexecdir=/usr/bin \ 1.28 + --mandir=/usr/share/man \ 1.29 + --infodir=/usr/share/info \ 1.30 + $CONFIGURE_ARGS && 1.31 + make && 1.32 make DESTDIR=$PWD/_pkg install 1.33 } 1.34 1.35 @@ -26,9 +31,15 @@ 1.36 mkdir -p $fs/usr/share/locale 1.37 cp -a $_pkg/bin $fs 1.38 cp -a $_pkg/usr/bin $fs/usr 1.39 - # Locale fr. 1.40 - cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale 1.41 - # Strip package. 1.42 - strip -s $fs/bin/* 1.43 - strip -s $fs/usr/bin/* 1.44 } 1.45 + 1.46 +# Remove Busybox symlink before installing 1.47 +pre_install() 1.48 +{ 1.49 + rm -f $1/bin/cpio 1.50 +} 1.51 + 1.52 +post_remove() 1.53 +{ 1.54 + ln -s /bin/busybox /bin/cpio 1.55 +}