diff options
Diffstat (limited to 'testing/perl-template-toolkit')
-rw-r--r-- | testing/perl-template-toolkit/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
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 <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +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" |