SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xarchiver"

# SliTaz package receipt.

PACKAGE="xarchiver"
VERSION="0.5.4.18"
CATEGORY="x-window"
SHORT_DESC="A GTK+ lightweight archive manager."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://github.com/ib/xarchiver"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"

# binutils for ar; busybox also contains gzip & cpio; rar is get-rar;
# gtar is absent
RECOMMENDED="gzip lzma unzip"
SUGGESTED="$RECOMMENDED arj bzip2 binutils cpio lha lzop p7zip-full rar xarchiver-lang xz zip"

DEPENDS="gtk+ libxml2 $RECOMMENDED"
BUILD_DEPENDS="gtk+-dev libxml2-dev"

GENERIC_PIXMAPS="no"
GENERIC_MENUS="no"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tags\//!d;s|.*/\(.*\).zip.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    patch -p0 < $stuff/xarchiver-0.5.3-icons.diff

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/pixmaps
    mkdir -p $fs/var/www/cgi-bin
    mkdir -p $fs/usr/share/doc/xarchiver/html

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/lib            $fs/usr
    cp -a $install/usr/share/applications    $fs/usr/share
    cp -a $install/usr/share/icons        $fs/usr/share
    cp -a $install/usr/share/pixmaps/*    $fs/usr/share/pixmaps

    rm -rf                    $fs/usr/share/icons/hicolor/scalable

    sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \
        $fs/usr/share/applications/xarchiver.desktop

    cp -a $stuff/xarchiver.cgi        $fs/var/www/cgi-bin
    cp -a $stuff/index.html            $fs/usr/share/doc/xarchiver/html
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)