wok-4.x annotate cpio/receipt @ rev 11285
perl-libwww: Clean up.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 10 14:56:54 2011 +0000 (2011-11-10) |
parents | 8548e74abb6a |
children |
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 } |