summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-31 18:07:50 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-31 18:07:50 (GMT)
commit075e8851c7e2ff0f9bd076689f502e3e1c92c213 (patch)
tree5fb7f11cd49ca2abf061a7108cd6fe1f5adc6413
parent04e54f944f30a52c0cb36b36c3da207341a7d45e (diff)
downloadlinhes_pkgbuild-075e8851c7e2ff0f9bd076689f502e3e1c92c213.zip
linhes_pkgbuild-075e8851c7e2ff0f9bd076689f502e3e1c92c213.tar.gz
linhes_pkgbuild-075e8851c7e2ff0f9bd076689f502e3e1c92c213.tar.bz2
perl-xml-dom: rebuild
-rw-r--r--abs/core/perl_modules/perl-xml-dom/PKGBUILD19
1 files changed, 16 insertions, 3 deletions
diff --git a/abs/core/perl_modules/perl-xml-dom/PKGBUILD b/abs/core/perl_modules/perl-xml-dom/PKGBUILD
index 07e39f2..767a9c0 100644
--- a/abs/core/perl_modules/perl-xml-dom/PKGBUILD
+++ b/abs/core/perl_modules/perl-xml-dom/PKGBUILD
@@ -1,14 +1,16 @@
-# Maintainer: kfgz <kfgz at interia pl>
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
+# Contributor: kfgz <kfgz at interia pl>
# Contributor: François Charette <firmicus at gmx dot net>
pkgname=perl-xml-dom
pkgver=1.44
-pkgrel=7
+pkgrel=9
pkgdesc="Implements Level 1 of W3's DOM"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/XML-DOM"
license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0' 'perlxml>=2.30' 'perl-xml-regexp' 'libxml-perl>=0.07' 'perl-libwww')
+#'perlxml>=2.30'
+depends=('perl>=5.10.0' 'perl-xml-regexp' 'libxml-perl>=0.07' 'perl-libwww')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-DOM-${pkgver}.tar.gz)
md5sums=('1ec2032a06e5762984f7a332c199c205')
@@ -19,9 +21,20 @@ build() {
make
}
+_perl_depends() {
+# 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;
+}
+
package() {
cd ${srcdir}/XML-DOM-${pkgver}
make install DESTDIR=${pkgdir}
find ${pkgdir} -name '.packlist' -delete
find ${pkgdir} -name '*.pod' -delete
+ _perl_depends
}