SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libarchive"

# SliTaz package receipt.

PACKAGE="libarchive"
VERSION="3.7.2"
CATEGORY="system-tools"
SHORT_DESC="C library and command line tool for reading archive."
MAINTAINER="erjo@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/libarchive/libarchive"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="${WEB_SITE}/releases/download/v$VERSION/$TARBALL"

DEPENDS="acl bzlib libcrypto liblzma libxml2 lz4-lib zlib"
BUILD_DEPENDS="acl-dev attr-dev libcrypto-dev libxml2-dev lz4-dev
    openssl-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/libarchive/libarchive/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6011 packages and 861676 files in cooking database (Sun Jun 15 00:48:28 2025)