wok-current view tar/receipt @ rev 25379
updated uget (2.2.1 -> 2.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 15:37:46 2022 +0100 (2022-07-30) |
parents | 71360a13cd94 |
children | 5926178cd6fa |
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 }