diff options
author | root <root@rshg054.dnsready.net> | 2011-11-01 23:15:01 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-01 23:15:01 +0000 |
commit | 37a1064b8105764414f279ced442e6ba2f63bea1 (patch) | |
tree | 173b87cd6535e622eff464080b398e0330df72bc /community/perl-params-util | |
parent | 560562e36a27da267f2f4f7989806790192888ef (diff) |
Tue Nov 1 23:15:01 UTC 2011
Diffstat (limited to 'community/perl-params-util')
-rw-r--r-- | community/perl-params-util/PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/perl-params-util/PKGBUILD b/community/perl-params-util/PKGBUILD new file mode 100644 index 000000000..df95826e9 --- /dev/null +++ b/community/perl-params-util/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Justin Davis <jrcd83@gmail.com> +# $Id: PKGBUILD 57661 2011-11-01 00:18:52Z juster $ + +pkgname=perl-params-util +pkgver=1.04 +pkgrel=1 +pkgdesc="Simple, compact and correct param-checking functions" +arch=(i686 x86_64) +license=(PerlArtistic GPL) +options=(!emptydirs) +depends=('perl>=5.5.30' 'perl-scalar-list-utils') +makedepends=('perl-extutils-cbuilder>=0.27' 'perl-extutils-makemaker>=6.52' + 'perl-pathtools') +checkdepends=('perl-test-simple') +url=https://metacpan.org/release/Params-Util +source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-${pkgver}.tar.gz") +md5sums=(84bfb0a16cff67f2077ece0e24408b0f) +sha512sums=(086b6e37ce24a423439e346c4fc7069cbb5bde6af5c259fa765616bf637597105ee379df5edca82fdeb3bb0e44d83c7704ea1fe09170acea389ffb54d77f3d3d) +_distdir="${srcdir}/Params-Util-${pkgver}" + +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 "$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + cd "$_distdir" + make test + ) +} + +package() { + cd "$_distdir" + make DESTDIR="$pkgdir" 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: |