SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libtar"

# SliTaz package receipt.

PACKAGE="libtar"
VERSION="1.2.20"
CATEGORY="development"
SHORT_DESC="C library for manipulating POSIX tar files."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="BSD"
WEB_SITE="https://directory.fsf.org/wiki/Libtar"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/tklauser/libtar/archive/v$VERSION/$TARBALL"

DEPENDS="zlib"
BUILD_DEPENDS="automake libtool zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/libtar-/!d;s|.*/libtar-||;s|[/-].*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    autoreconf --force --install
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)