wok view tar/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 6e072873c163
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 - https://ftp.gnu.org/gnu/$PACKAGE/ 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 }