wok-6.x view tar/receipt @ rev 25469

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 07 09:15:33 2022 +0000 (2022-10-07)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tar"
4 VERSION="1.34"
5 CATEGORY="utilities"
6 TAGS="archive compression"
7 SHORT_DESC="GNU tar archiving tools."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://www.gnu.org/software/tar/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 SUGGESTED="tar-lang"
16 DEPENDS="xz"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/tar..z/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # this is needed since configure can't be run as root without it
31 export FORCE_UNSAFE_CONFIGURE=1
33 ./configure \
34 --prefix=/usr \
35 --libexecdir=/usr/lib/$PACKAGE \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cook_copy_folders bin
45 }
47 # Prevent erasing busybox...
48 pre_install()
49 {
50 rm -f "$1/bin/tar"
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox /bin/tar
56 }