summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD56
1 files changed, 36 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 903d291221b..9f52dd6c1d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,51 @@
-# CPAN Name : Data-Visitor
-# Submitter : aCiD2
-# Maintainer : SIGTERM
+# Maintainer: int <int [ate] arcor [dot] de>
+# Generator : CPANPLUS::Dist::Arch 1.32
pkgname='perl-data-visitor'
-pkgver='0.30'
+pkgver='0.31'
pkgrel='1'
-pkgdesc="Visitor style traversal of Perl data structures"
+pkgdesc="Perl/CPAN Module Data::Visitor: Visitor style traversal of Perl data structures"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
-depends=('perl-class-load>=0.06' 'perl-moose>=0.89' 'perl-namespace-clean>=0.19' 'perl-task-weaken' 'perl-tie-toobject>=0.01')
-makedepends=('perl-test-requires')
-url='http://search.cpan.org/dist/Data-Visitor'
-source=('http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Data-Visitor-0.30.tar.gz')
-md5sums=('a43deb0bc99f4d49721965780eae6cef')
-sha512sums=('cdd3f5076dbbfb3afce714677e936417b96315dd50735c015795fb2c9d143d4e2ceeb305366f9985032b17899b911267dbafefa56493ff20f16c74da1a9330a8')
+depends=('perl-moose>=0.89' 'perl-sub-name' 'perl-tie-toobject>=0.01' 'perl-namespace-clean>=0.19' 'perl>=5.006')
+makedepends=()
+checkdepends=('perl-test-needs')
+url='https://metacpan.org/release/Data-Visitor'
+source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Data-Visitor-$pkgver.tar.gz")
+md5sums=('87f35b109f78177c59fab6de1039b8da')
+sha512sums=('4c2cba80e3ef5ed0a19836b58f82da18e8ea1adf25c60767f308807c0e592bc679df6e4d58a0b1fd9fc65d558403d4beab1c327914c4572902971857cbdb8198')
+_distdir="Data-Visitor-$pkgver"
build() {
- cd "$srcdir/Data-Visitor-0.30"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "$srcdir/$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
}
check() {
- cd "$srcdir/Data-Visitor-0.30"
- PERL_MM_USE_DEFAULT=1
- make test
+ cd "$srcdir/$_distdir"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+ )
}
package() {
- cd "$srcdir/Data-Visitor-0.30"
- make install DESTDIR="$pkgdir"
- find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
+ cd "$srcdir/$_distdir"
+ make install
+
+ find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: