wok-current annotate tar/receipt @ rev 24870

updated lxpanel, lxpanel-dev and lxpanel-extra (0.10.0 -> 0.10.1)
author Hans-G?nter Theisgen
date Thu Mar 31 07:03:25 2022 +0100 (2022-03-31)
parents e6acefc68df0
children 6e072873c163
rev   line source
pankso@455 1 # SliTaz package receipt.
pankso@455 2
pankso@455 3 PACKAGE="tar"
Hans-G?nter@22004 4 VERSION="1.32"
pankso@455 5 CATEGORY="utilities"
Hans-G?nter@22004 6 TAGS="archive compression"
pankso@455 7 SHORT_DESC="GNU tar archiving tools."
pankso@455 8 MAINTAINER="pankso@slitaz.org"
pascal@15590 9 LICENSE="GPL3"
Hans-G?nter@22004 10 WEB_SITE="https://www.gnu.org/software/tar/"
Hans-G?nter@22004 11
pankso@455 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@22004 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@455 14
pascal@20091 15 DEPENDS="xz"
pascal@20091 16
Hans-G?nter@22004 17 HOST_ARCH="i486 arm"
Hans-G?nter@22004 18
pascal@24336 19 # What is the latest version available today?
pascal@24336 20 current_version()
pascal@24336 21 {
pascal@24336 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 23 sed "/latest/d;/tar..z/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 24 }
pascal@24336 25
pankso@455 26 # Rules to configure and make the package.
pankso@455 27 compile_rules()
pankso@455 28 {
slaxemulator@7183 29 # this is needed since configure can't be run as root with out it
slaxemulator@7183 30 export FORCE_UNSAFE_CONFIGURE=1
Hans-G?nter@22004 31
Hans-G?nter@22004 32 ./configure \
Hans-G?nter@22004 33 --prefix=/usr \
Hans-G?nter@22004 34 --libexecdir=/usr/lib/$PACKAGE \
Hans-G?nter@22004 35 $CONFIGURE_ARGS &&
Hans-G?nter@22004 36 make &&
pascal@15590 37 make DESTDIR=$DESTDIR install
pankso@455 38 }
pankso@455 39
pankso@455 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@455 41 genpkg_rules()
pankso@455 42 {
pascal@5014 43 mkdir -p $fs
pascal@15590 44 cp -a $install/usr/bin $fs
pankso@455 45 }
pankso@455 46
pankso@455 47 # Prevent erasing busybox...
pankso@455 48 pre_install()
pankso@455 49 {
pascal@18730 50 rm -f "$1/bin/tar"
pankso@455 51 }
pankso@455 52
pankso@455 53 post_remove()
pankso@455 54 {
pascal@5014 55 ln -s /bin/busybox /bin/tar
pankso@455 56 }