wok annotate cpio/receipt @ rev 20807

updated cpio (2.11 -> 2.12)
author Hans-G?nter Theisgen
date Sun Feb 17 16:53:44 2019 +0100 (2019-02-17)
parents 9e01bc6321ea
children dfc9f040ab63
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="cpio"
Hans-G?nter@20807 4 VERSION="2.12"
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"
Hans-G?nter@20807 9 WEB_SITE="http://www.gnu.org/software/cpio/"
Hans-G?nter@20807 10
pankso@5 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@5 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@5 13
pascal@14999 14 DEPENDS="glibc-base"
pascal@14999 15 BUILD_DEPENDS="slitaz-toolchain"
pascal@14999 16
pankso@5 17 # Rules to configure and make the package.
pankso@5 18 compile_rules()
pankso@5 19 {
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 {
Hans-G?nter@20807 33 # mkdir -p $fs/usr/share/locale
Hans-G?nter@20807 34 mkdir -p $fs/usr/bin
pascal@14999 35 cp -a $install/bin $fs
pascal@14999 36 cp -a $install/usr/bin $fs/usr
pankso@5 37 }
rcx@3668 38
rcx@3668 39 # Remove Busybox symlink before installing
rcx@3668 40 pre_install()
rcx@3668 41 {
pascal@18730 42 rm -f "$1/bin/cpio"
rcx@3668 43 }
rcx@3668 44
rcx@3668 45 post_remove()
rcx@3668 46 {
pascal@18730 47 ln -s /bin/busybox "$1/bin/cpio"
rcx@3668 48 }