diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:19:48 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-31 18:19:48 (GMT) |
commit | b3b1cba96395654c710502df440606f421a0ac38 (patch) | |
tree | d9d677140ccfe6f34aac09c6a96d020a03bdaf32 /abs/core/perl_modules/perl-xml-libxml/PKGBUILD | |
parent | ce15d4831c6b527476220ab551fb3b3b933d8caf (diff) | |
download | linhes_pkgbuild-b3b1cba96395654c710502df440606f421a0ac38.zip linhes_pkgbuild-b3b1cba96395654c710502df440606f421a0ac38.tar.gz linhes_pkgbuild-b3b1cba96395654c710502df440606f421a0ac38.tar.bz2 |
perl-xml-libxml: update to 2.0132
Diffstat (limited to 'abs/core/perl_modules/perl-xml-libxml/PKGBUILD')
-rw-r--r-- | abs/core/perl_modules/perl-xml-libxml/PKGBUILD | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD index 24c6acd..ad82aab 100644 --- a/abs/core/perl_modules/perl-xml-libxml/PKGBUILD +++ b/abs/core/perl_modules/perl-xml-libxml/PKGBUILD @@ -1,29 +1,44 @@ -# Maintainer: François Charette <francois.archlinux.org> +# $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 <francois.archlinux.org> pkgname=perl-xml-libxml -pkgver=1.70 -pkgrel=2 +pkgver=2.0132 +pkgrel=1 pkgdesc="Interface to the libxml library" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://search.cpan.org/dist/XML-LibXML" license=('GPL') -depends=('libxml2' 'perl-xml-sax>=0.11' 'perl-xml-namespacesupport>=1.07') +depends=('libxml2' 'perl-xml-sax' 'perl-xml-namespacesupport') +checkdepends=('perl-test-pod' 'perl-test-leaktrace' 'perl-cpan-changes' 'perl-uri') provides=('perl-libxml' 'perl-xml-libxml-common') replaces=('perl-libxml' 'perl-xml-libxml-common') -conflicts=('perl-libxml' 'perl-xml-libxml-common') -install=perl-xml-libxml.install options=('!emptydirs') -source=(http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-$pkgver.tar.gz) +install=perl-xml-libxml.install +source=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz) +sha512sums=('3df1cb67ea955133492f2b6f8def2b28079c59e99170a31820aca69ea81686c4b67171509f1b311faab9389d200c4a24942b3950d7c0730ff1233a009b398fce') build() { - cd $srcdir/XML-LibXML-$pkgver - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$srcdir"/XML-LibXML-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make } + +check() { + cd "$srcdir"/XML-LibXML-$pkgver + make test +} + package() { - cd $srcdir/XML-LibXML-$pkgver - make pure_install doc_install DESTDIR=$pkgdir || return 1 - find $pkgdir -name '.packlist' -delete - find $pkgdir -name '*.pod' -delete + cd "$srcdir"/XML-LibXML-$pkgver + make pure_install doc_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; } -md5sums=('33d4294f708e20c298cfe534d1166844') |