SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xar"

# SliTaz package receipt.

PACKAGE="xar"
VERSION="1.6.1"
CATEGORY="utilities"
SHORT_DESC="eXtensible ARchiver."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="BSD"
WEB_SITE="https://mackyle.github.io/xar/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/mackyle/xar/archive/refs/tags/$TARBALL"

DEPENDS="acl attr bzlib glibc-base libcrypto liblzma libxml2 zlib"
BUILD_DEPENDS="bzip2-dev liblzma-dev openssl-dev zlib-dev e2fsprogs-dev automake"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/mackyle/xar/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/xar-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd xar
    sed -e 's|.*EXT2_ECOMPR_FL)|#ifdef EXT2_ECOMPR_FL\n&|;s|EXT2_ECOMPR_FL .*|&\n#endif|' \
        -e 's|.*CompError",|#ifdef EXT2_ECOMPR_FL\n&|;s|CompError").*|&\n#endif|' \
        -i lib/ext2.c
    ./autogen.sh &&
    ./configure $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)