# HG changeset patch # User Nathan Neulinger # Date 1427219153 0 # Node ID 8d2b13d29bb3a2ce1f3f87f3bd7fecb463c18e64 # Parent ccf05f4f5e5810ed7c30d09bff00472cb6c7ce46 Add: perl-template-toolkit - Template::Toolkit diff -r ccf05f4f5e58 -r 8d2b13d29bb3 perl-template-toolkit/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-template-toolkit/receipt Tue Mar 24 17:45:53 2015 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="perl-template-toolkit" +VERSION="2.26" +CATEGORY="development" +SHORT_DESC="Perl/CPAN Module Template Toolkit" +MAINTAINER="nneul@neulinger.org" +LICENSE="Artistic" +DEPENDS="perl perl-appconfig" +BUILD_DEPENDS="perl-appconfig" +SOURCE="Template-Toolkit" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://search.cpan.org/dist/Template-Toolkit/" +WGET_URL="http://www.cpan.org/authors/id/A/AB/ABW/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + perl Makefile.PL TT_XS_ENABLE=y TT_XS_DEFAULT=y TT_ACCEPT=y TT_QUIET=n && + 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 + + +} +