diff options
author | Erich Eckner <git@eckner.net> | 2016-04-21 09:09:50 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-21 09:09:50 +0200 |
commit | 4f9a888b93ab3e46dcb7eb530d64b039d2fbe2e3 (patch) | |
tree | 74c60f00a55cfe5d4a2909f72990f62da891bf6a /perl-data-visitor | |
parent | df7480c1b410a6f5f33a744f0ba2d0ba8edea24a (diff) | |
download | archlinuxewe.git.save-4f9a888b93ab3e46dcb7eb530d64b039d2fbe2e3.tar.xz |
perl-data-visitor neu
Diffstat (limited to 'perl-data-visitor')
-rw-r--r-- | perl-data-visitor/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/perl-data-visitor/PKGBUILD b/perl-data-visitor/PKGBUILD new file mode 100644 index 00000000..4e2992fe --- /dev/null +++ b/perl-data-visitor/PKGBUILD @@ -0,0 +1,37 @@ +# CPAN Name : Data-Visitor +# Submitter : aCiD2 +# Contributor: SIGTERM +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname='perl-data-visitor' +pkgver='0.30' +pkgrel='1' +pkgdesc="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') +checkdepends=('perl-data-alias') +url='http://search.cpan.org/dist/Data-Visitor' +_cpanName="Data-Visitor-${pkgver}" +source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/${_cpanName}.tar.gz") +sha512sums=('cdd3f5076dbbfb3afce714677e936417b96315dd50735c015795fb2c9d143d4e2ceeb305366f9985032b17899b911267dbafefa56493ff20f16c74da1a9330a8') + +build() { + cd "$srcdir/${_cpanName}" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$srcdir/${_cpanName}" + PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "$srcdir/${_cpanName}" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete +} |