wok-6.x view cpio/receipt @ rev 20289
elilo: force ia32 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 10 13:11:07 2018 +0200 (2018-04-10) |
parents | 2b9f96603415 |
children | 85bdd085b930 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cpio"
4 VERSION="2.11"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU cpio archiver."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/cpio/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="slitaz-toolchain"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
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 cp -a $install/bin $fs
35 cp -a $install/usr/bin $fs/usr
36 }
38 # Remove Busybox symlink before installing
39 pre_install()
40 {
41 rm -f "$1/bin/cpio"
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox "$1/bin/cpio"
47 }