summaryrefslogtreecommitdiff
path: root/community/perl-data-dumper/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-30 23:11:47 +0000
committerroot <root@rshg047.dnsready.net>2011-06-30 23:11:47 +0000
commit64e72407414ce0badfb541782125cd8e3a25c12e (patch)
treeb77ce06374d43b1653bc517ebdbd10e1d0f2b328 /community/perl-data-dumper/PKGBUILD
parent5e8a6a470237711ad18f12dde87deea6f2b8b0e0 (diff)
Thu Jun 30 23:11:47 UTC 2011
Diffstat (limited to 'community/perl-data-dumper/PKGBUILD')
-rw-r--r--community/perl-data-dumper/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/perl-data-dumper/PKGBUILD b/community/perl-data-dumper/PKGBUILD
new file mode 100644
index 000000000..8fea1b8e4
--- /dev/null
+++ b/community/perl-data-dumper/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: AUR Perl <aurperl@juster.info>
+
+pkgname='perl-data-dumper'
+pkgver=2.131
+pkgrel=1
+pkgdesc="Convert data structure into perl code"
+arch=('i686' 'x86_64')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='http://search.cpan.org/dist/Data-Dumper'
+source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Data-Dumper-$pkgver.tar.gz")
+md5sums=('653ac6576e6916446419ae4ba786073f')
+
+build() {
+ ( 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}/Data-Dumper-$pkgver"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ cd "${srcdir}/Data-Dumper-$pkgver"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" make test )
+}
+
+package() {
+ cd "${srcdir}/Data-Dumper-$pkgver"
+ make install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}