SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tar"

# SliTaz package receipt.

PACKAGE="tar"
VERSION="1.34"
CATEGORY="utilities"
TAGS="archive compression"
SHORT_DESC="GNU tar archiving tools."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/tar/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

SUGGESTED="tar-lang"
DEPENDS="xz"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/tar..z/!d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    # this is needed since configure can't be run as root without it
    export FORCE_UNSAFE_CONFIGURE=1

    ./configure                \
        --prefix=/usr            \
        --libexecdir=/usr/lib/$PACKAGE    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
}

# Prevent erasing busybox...
pre_install()
{
    rm -f "$1/bin/tar"
}

post_remove()
{
    ln -s /bin/busybox /bin/tar
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)