SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "perl-libwww"

# SliTaz package receipt.

PACKAGE="perl-libwww"
VERSION="6.04"
CATEGORY="development"
SHORT_DESC="A set of Perl modules which provides a simple and consistent API to the WWW"
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL"
DEPENDS="perl-uri perl-html-parser perl-encode-locale perl-file-listing \
 perl-html-parser perl-http-cookies perl-http-daemon perl-http-date \
 perl-http-negotiate  perl-http-message perl-lwp-mediatypes perl-mime-base64 \
 perl-net-ftp perl-net-http perl-www-robotrules"
BUILD_DEPENDS="perl $DEPENDS"
SOURCE="libwww-perl"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="https://metacpan.org/release/libwww-perl/"
WGET_URL="https://cpan.metacpan.org/authors/id/G/GA/GAAS/$TARBALL"

current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    perl Makefile.PL &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib $fs/usr
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)