SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xmlstarlet"

# SliTaz package receipt.

PACKAGE="xmlstarlet"
VERSION="1.6.1"
CATEGORY="development"
SHORT_DESC="Command Line XML Toolkit"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="MIT"
WEB_SITE="https://sourceforge.net/projects/xmlstar/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/xmlstar/$TARBALL"

DEPENDS="libxml2 libxslt zlib"
BUILD_DEPENDS="libxslt-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/xmlstar/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/files_name_h/!d;/xmlstarlet/!d;s|.*xmlstarlet/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure $CONFIGURE_ARGS && make && make install

    mv $install/usr/bin/xml $install/usr/bin/xmlstarlet
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files xmlstarlet
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)