summaryrefslogtreecommitdiff
path: root/community/perl-params-util
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-02 00:01:53 +0000
committerroot <root@rshg054.dnsready.net>2012-06-02 00:01:53 +0000
commit211709a2f09bd677aa1deac0dc82fde6ce1c8626 (patch)
treebd95688134860851652ff3d47f376702917f1b76 /community/perl-params-util
parent7087de492f6effbd08f6b644ce85d1b1ea58fb14 (diff)
Sat Jun 2 00:01:53 UTC 2012
Diffstat (limited to 'community/perl-params-util')
-rw-r--r--community/perl-params-util/PKGBUILD65
1 files changed, 30 insertions, 35 deletions
diff --git a/community/perl-params-util/PKGBUILD b/community/perl-params-util/PKGBUILD
index df95826e9..da772e5f4 100644
--- a/community/perl-params-util/PKGBUILD
+++ b/community/perl-params-util/PKGBUILD
@@ -1,48 +1,43 @@
-# Maintainer: Justin Davis <jrcd83@gmail.com>
-# $Id: PKGBUILD 57661 2011-11-01 00:18:52Z juster $
+# Maintainer: Justin Davis (juster) <jrcd83@gmail.com>
+# $Id: PKGBUILD 71654 2012-05-31 15:48:33Z juster $
pkgname=perl-params-util
-pkgver=1.04
+pkgver=1.07
pkgrel=1
-pkgdesc="Simple, compact and correct param-checking functions"
+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')
+depends=('perl>=5.5.30')
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}"
+source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-$pkgver.tar.gz")
+md5sums=(02db120c0eef87aae1830cc62bdec37b)
+sha512sums=(ff471b01b33414fc5e1c68d97c21171a95d3418c33e3c45f9910cc768898690e35051506a83ad9403a200336654c14b8efc9d471c4b3fe3321047a7603d6fd56)
+_dir="$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
+build()
+(
+ cd "$_dir"
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ unset PERL5LIB PERL_MM_OPT
+ /usr/bin/perl Makefile.PL
+ make
+)
- cd "$_distdir"
- /usr/bin/perl Makefile.PL
- make
- )
-}
+check()
+(
+ cd "$_dir"
+ export PERL_MM_USE_DEFAULT=1
+ unset PERL5LIB
+ make test
+)
-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
-}
+package()
+(
+ cd "$_dir"
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+)
# Local Variables:
# mode: shell-script