From 2b7e547e3f4fc2deb7dd4428cc9d28621732c34c Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 31 May 2018 18:25:02 +0000
Subject: perl-xml-libxslt: update to 1.96

---
 abs/core/perl_modules/perl-xml-libxslt/PKGBUILD | 41 ++++++++++++++++---------
 1 file changed, 26 insertions(+), 15 deletions(-)

diff --git a/abs/core/perl_modules/perl-xml-libxslt/PKGBUILD b/abs/core/perl_modules/perl-xml-libxslt/PKGBUILD
index 708898b..69b9301 100644
--- a/abs/core/perl_modules/perl-xml-libxslt/PKGBUILD
+++ b/abs/core/perl_modules/perl-xml-libxslt/PKGBUILD
@@ -1,30 +1,41 @@
-# Id:$
-# Maintainer: François Charette <firmicus ατ gmx δοτ net>
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Jonathan Steel <jsteel@aur.archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83@gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
 
 pkgname=perl-xml-libxslt
-pkgver=1.70
-pkgrel=6
-pkgdesc="Interface to the gnome libxslt library "
-arch=('i686' 'x86_64')
+pkgver=1.96
+pkgrel=1
+pkgdesc="Interface to the gnome libxslt library"
+arch=('x86_64')
 url="http://search.cpan.org/dist/XML-LibXSLT"
 license=('GPL')
 depends=('perl-xml-libxml' 'libxslt')
-source=(http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXSLT-$pkgver.tar.gz) 
-md5sums=('c63a7913999de076e5c911810f69b392')
+checkdepends=('perl-test-pod')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXSLT-$pkgver.tar.gz)
+sha512sums=('7b6e22889c538bbd861c6420cd56893d229676d3afc1cf30e17cae48a4714139769a99a48a99f1dff52864f4989e410303007c07941625bf6bd12a24276c35e6')
 
 build() {
-  cd  $srcdir/XML-LibXSLT-$pkgver
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  cd XML-LibXSLT-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
-check () {
-  cd  $srcdir/XML-LibXSLT-$pkgver
+check() {
+  cd XML-LibXSLT-$pkgver
   make test
 }
 
 package() {
-  cd  $srcdir/XML-LibXSLT-$pkgver
-  make install DESTDIR=$pkgdir
+  cd XML-LibXSLT-$pkgver
+  make DESTDIR="$pkgdir" install
+# 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

