wok-6.x annotate cpio/receipt @ rev 24798

updated libhx and libhx-dev (3.24 -> 4.3)
author Hans-G?nter Theisgen
date Mon Mar 21 17:23:16 2022 +0100 (2022-03-21)
parents 35292b022843
children
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="cpio"
pascal@23835 4 VERSION="2.13"
pankso@178 5 CATEGORY="base-system"
pankso@5 6 SHORT_DESC="GNU cpio archiver."
pankso@5 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@20807 9 WEB_SITE="http://www.gnu.org/software/cpio/"
Hans-G?nter@20807 10
pankso@5 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20809 12 GNU_MIRROR="http://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.gnu.org"
pankso@5 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@5 14
pascal@14999 15 DEPENDS="glibc-base"
pascal@14999 16 BUILD_DEPENDS="slitaz-toolchain"
pascal@14999 17
pascal@24336 18 # What is the latest version available today?
pascal@24336 19 current_version()
pascal@24336 20 {
pascal@24336 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 23 }
pascal@24336 24
pankso@5 25 # Rules to configure and make the package.
pankso@5 26 compile_rules()
pankso@5 27 {
rcx@3668 28 ./configure --prefix=/usr \
rcx@3668 29 --bindir=/bin \
rcx@3668 30 --libexecdir=/usr/bin \
rcx@3668 31 --mandir=/usr/share/man \
rcx@3668 32 --infodir=/usr/share/info \
rcx@3668 33 $CONFIGURE_ARGS &&
rcx@3668 34 make &&
pascal@14999 35 make DESTDIR=$DESTDIR install
pankso@5 36 }
pankso@5 37
pankso@5 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 39 genpkg_rules()
pankso@5 40 {
Hans-G?nter@20807 41 # mkdir -p $fs/usr/share/locale
Hans-G?nter@20807 42 mkdir -p $fs/usr/bin
pascal@14999 43 cp -a $install/bin $fs
pascal@14999 44 cp -a $install/usr/bin $fs/usr
pankso@5 45 }
rcx@3668 46
rcx@3668 47 # Remove Busybox symlink before installing
rcx@3668 48 pre_install()
rcx@3668 49 {
pascal@18730 50 rm -f "$1/bin/cpio"
rcx@3668 51 }
rcx@3668 52
rcx@3668 53 post_remove()
rcx@3668 54 {
pascal@18730 55 ln -s /bin/busybox "$1/bin/cpio"
rcx@3668 56 }