From 7ca5ff288db1ce65d6b4ecdd5374a6a02ed0e007 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 24 Mar 2017 17:41:29 +0000 Subject: perl-template-toolkit: initial inclusion. dep of perl-wsdl --- .../perl_modules/perl-template-toolkit/PKGBUILD | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 abs/core/perl_modules/perl-template-toolkit/PKGBUILD diff --git a/abs/core/perl_modules/perl-template-toolkit/PKGBUILD b/abs/core/perl_modules/perl-template-toolkit/PKGBUILD new file mode 100644 index 0000000..157cad2 --- /dev/null +++ b/abs/core/perl_modules/perl-template-toolkit/PKGBUILD @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Firmicus +# Contributor: Tom Killian +# Contributor: FJ + +pkgname=perl-template-toolkit +pkgver=2.26 +pkgrel=3 +pkgdesc="Perl template processing system" +arch=('i686' 'x86_64') +url="http://search.cpan.org/dist/Template-Toolkit/" +license=('PerlArtistic') +depends=('perl-appconfig' 'perl') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-$pkgver.tar.gz) +md5sums=('4c289856ebee446ebbe2629b24f0734b') + +build() { + cd Template-Toolkit-$pkgver + perl Makefile.PL INSTALLDIRS=vendor TT_ACCEPT=y + make +} + +check() { + cd Template-Toolkit-$pkgver + make test +} + +package() { + cd Template-Toolkit-$pkgver + make install DESTDIR="${pkgdir}" +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} -- cgit v0.12