wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="cpio"
4 VERSION="2.12"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU cpio archiver."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/cpio/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="slitaz-toolchain"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure --prefix=/usr \
21 --bindir=/bin \
22 --libexecdir=/usr/bin \
23 --mandir=/usr/share/man \
24 --infodir=/usr/share/info \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 # mkdir -p $fs/usr/share/locale
34 mkdir -p $fs/usr/bin
35 cp -a $install/bin $fs
36 cp -a $install/usr/bin $fs/usr
37 }
39 # Remove Busybox symlink before installing
40 pre_install()
41 {
42 rm -f "$1/bin/cpio"
43 }
45 post_remove()
46 {
47 ln -s /bin/busybox "$1/bin/cpio"
48 }