From abe81838951a58ad57cf6591909b10cafda47593 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Sat, 27 Oct 2012 18:07:05 +0000 Subject: testing/perl-template-toolkit: new aport --- testing/perl-template-toolkit/APKBUILD | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/perl-template-toolkit/APKBUILD (limited to 'testing/perl-template-toolkit/APKBUILD') diff --git a/testing/perl-template-toolkit/APKBUILD b/testing/perl-template-toolkit/APKBUILD new file mode 100644 index 0000000000..25bdcd03a2 --- /dev/null +++ b/testing/perl-template-toolkit/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=perl-template-toolkit +_pkgreal=Template-Toolkit +pkgver=2.24 +pkgrel=0 +pkgdesc="comprehensive template processing system" +url="http://search.cpan.org/dist/Template-Toolkit/" +arch="all" +license="GPL PerlArtistic" +cpandepends="perl-appconfig" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="c25fdab1beebf8818c2e624bc9f9d212 Template-Toolkit-2.24.tar.gz" -- cgit v1.2.3