summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-03-24 17:41:29 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-03-24 17:41:29 (GMT)
commit7ca5ff288db1ce65d6b4ecdd5374a6a02ed0e007 (patch)
treeb1aa5f80916699cb775ff95b0e4ebb2d0462c1e7
parent3045bc810ec080626d5d3fe9e565bf635163c51b (diff)
downloadlinhes_pkgbuild-7ca5ff288db1ce65d6b4ecdd5374a6a02ed0e007.zip
linhes_pkgbuild-7ca5ff288db1ce65d6b4ecdd5374a6a02ed0e007.tar.gz
linhes_pkgbuild-7ca5ff288db1ce65d6b4ecdd5374a6a02ed0e007.tar.bz2
perl-template-toolkit: initial inclusion. dep of perl-wsdl
-rw-r--r--abs/core/perl_modules/perl-template-toolkit/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
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 <felixonmars@archlinux.org>
+# Contributor: Firmicus <francois.archlinux.org>
+# Contributor: Tom Killian <tomk@runbox.com>
+# Contributor: FJ <joostef@gmail.com>
+
+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;
+}