wok-6.x view cpio/receipt @ rev 24352
babl-dev: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 10:29:52 2022 +0000 (2022-02-03) |
parents | 35292b022843 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cpio"
4 VERSION="2.13"
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 GNU_MIRROR="http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.gnu.org"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="glibc-base"
16 BUILD_DEPENDS="slitaz-toolchain"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --prefix=/usr \
29 --bindir=/bin \
30 --libexecdir=/usr/bin \
31 --mandir=/usr/share/man \
32 --infodir=/usr/share/info \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 # mkdir -p $fs/usr/share/locale
42 mkdir -p $fs/usr/bin
43 cp -a $install/bin $fs
44 cp -a $install/usr/bin $fs/usr
45 }
47 # Remove Busybox symlink before installing
48 pre_install()
49 {
50 rm -f "$1/bin/cpio"
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox "$1/bin/cpio"
56 }