wok annotate cpio/receipt @ rev 13429

partclone: add btrfs & hfsplus support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 04 11:53:21 2012 +0200 (2012-10-04)
parents 8548e74abb6a
children 2b9f96603415
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="cpio"
pankso@5265 4 VERSION="2.11"
pankso@178 5 CATEGORY="base-system"
pankso@5 6 SHORT_DESC="GNU cpio archiver."
pankso@5 7 MAINTAINER="pankso@slitaz.org"
rcx@3668 8 DEPENDS="glibc-base"
rcx@3668 9 BUILD_DEPENDS="slitaz-toolchain"
pankso@5 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@5 11 WEB_SITE="http://www.gnu.org/software/cpio/"
pankso@5 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@5 13
pankso@5 14 # Rules to configure and make the package.
pankso@5 15 compile_rules()
pankso@5 16 {
pankso@5 17 cd $src
rcx@3668 18 ./configure --prefix=/usr \
rcx@3668 19 --bindir=/bin \
rcx@3668 20 --libexecdir=/usr/bin \
rcx@3668 21 --mandir=/usr/share/man \
rcx@3668 22 --infodir=/usr/share/info \
rcx@3668 23 $CONFIGURE_ARGS &&
rcx@3668 24 make &&
pankso@5 25 make DESTDIR=$PWD/_pkg install
pankso@5 26 }
pankso@5 27
pankso@5 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 29 genpkg_rules()
pankso@5 30 {
pankso@5 31 mkdir -p $fs/usr/share/locale
pankso@5 32 cp -a $_pkg/bin $fs
pankso@5 33 cp -a $_pkg/usr/bin $fs/usr
pankso@5 34 }
rcx@3668 35
rcx@3668 36 # Remove Busybox symlink before installing
rcx@3668 37 pre_install()
rcx@3668 38 {
rcx@3668 39 rm -f $1/bin/cpio
rcx@3668 40 }
rcx@3668 41
rcx@3668 42 post_remove()
rcx@3668 43 {
rcx@3668 44 ln -s /bin/busybox /bin/cpio
rcx@3668 45 }