wok view tar/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents e6acefc68df0
children 6e072873c163
line source
1 # SliTaz package receipt.
3 PACKAGE="tar"
4 VERSION="1.32"
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 DEPENDS="xz"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/tar..z/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # this is needed since configure can't be run as root with out it
30 export FORCE_UNSAFE_CONFIGURE=1
32 ./configure \
33 --prefix=/usr \
34 --libexecdir=/usr/lib/$PACKAGE \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs
44 cp -a $install/usr/bin $fs
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 }