wok view cpio/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks 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 }