SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libarchive"

# SliTaz package receipt.

PACKAGE="libarchive"
VERSION="3.7.3"
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 zstd"
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 '/libarchive-[0-9]/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;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*
}
6025 packages and 203653 files in current database (Fri May 31 00:00:08 2024)