wok annotate cpio/receipt @ rev 18461
Up ranger (1.7.1)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Thu Oct 01 19:21:20 2015 +0100 (2015-10-01) |
parents | 186060f6d3d0 |
children | 9e01bc6321ea |
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" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@5 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@5 | 10 WEB_SITE="http://www.gnu.org/software/cpio/" |
pankso@5 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@5 | 12 |
pascal@14999 | 13 DEPENDS="glibc-base" |
pascal@14999 | 14 BUILD_DEPENDS="slitaz-toolchain" |
pascal@14999 | 15 |
pankso@5 | 16 # Rules to configure and make the package. |
pankso@5 | 17 compile_rules() |
pankso@5 | 18 { |
pankso@5 | 19 cd $src |
rcx@3668 | 20 ./configure --prefix=/usr \ |
rcx@3668 | 21 --bindir=/bin \ |
rcx@3668 | 22 --libexecdir=/usr/bin \ |
rcx@3668 | 23 --mandir=/usr/share/man \ |
rcx@3668 | 24 --infodir=/usr/share/info \ |
rcx@3668 | 25 $CONFIGURE_ARGS && |
rcx@3668 | 26 make && |
pascal@14999 | 27 make DESTDIR=$DESTDIR install |
pankso@5 | 28 } |
pankso@5 | 29 |
pankso@5 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 31 genpkg_rules() |
pankso@5 | 32 { |
pankso@5 | 33 mkdir -p $fs/usr/share/locale |
pascal@14999 | 34 cp -a $install/bin $fs |
pascal@14999 | 35 cp -a $install/usr/bin $fs/usr |
pankso@5 | 36 } |
rcx@3668 | 37 |
rcx@3668 | 38 # Remove Busybox symlink before installing |
rcx@3668 | 39 pre_install() |
rcx@3668 | 40 { |
rcx@3668 | 41 rm -f $1/bin/cpio |
rcx@3668 | 42 } |
rcx@3668 | 43 |
rcx@3668 | 44 post_remove() |
rcx@3668 | 45 { |
rcx@3668 | 46 ln -s /bin/busybox /bin/cpio |
rcx@3668 | 47 } |