wok view cpio/receipt @ rev 25666

Up c-ares (1.27.0), cpio (2.15), dnsmasq (2.90), dovecot (2.3.21), fetchmail (6.4.38), file (5.45), firejail (0.9.72), flac (1.4.3), freeradius (3.2.3), freetype (2.13.2), fribidi (1.0.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 12:01:55 2024 +0000 (3 months ago)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cpio"
4 VERSION="2.15"
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 }