SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "perl-yaml"

# SliTaz package receipt.

PACKAGE="perl-yaml"
VERSION="1.30"
CATEGORY="development"
SHORT_DESC="Perl extension YAML : YAML Aint Markup Language tm."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL"
WEB_SITE="https://metacpan.org/release/YAML/"

SOURCE="YAML"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://www.cpan.org/modules/by-module/YAML/$TARBALL"

DEPENDS="perl"
BUILD_DEPENDS="perl"

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

# Rules to configure and make the package.
compile_rules()
{
    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/lib    $fs/usr

    # remove perllocal.pod and .packlist
    find $fs -name perllocal.pod -delete
    find $fs -name .packlist -delete
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)