summaryrefslogtreecommitdiff
path: root/community/perl-params-util/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-params-util/PKGBUILD')
-rw-r--r--community/perl-params-util/PKGBUILD67
1 files changed, 36 insertions, 31 deletions
diff --git a/community/perl-params-util/PKGBUILD b/community/perl-params-util/PKGBUILD
index da772e5f4..231c569ee 100644
--- a/community/perl-params-util/PKGBUILD
+++ b/community/perl-params-util/PKGBUILD
@@ -1,43 +1,48 @@
-# Maintainer: Justin Davis (juster) <jrcd83@gmail.com>
-# $Id: PKGBUILD 71654 2012-05-31 15:48:33Z juster $
+# Maintainer: Justin Davis <jrcd83@gmail.com>
+# $Id: PKGBUILD 71823 2012-06-02 10:31:54Z bluewind $
pkgname=perl-params-util
-pkgver=1.07
-pkgrel=1
-pkgdesc='Simple, compact and correct param-checking functions'
+pkgver=1.04
+pkgrel=2
+pkgdesc="Simple, compact and correct param-checking functions"
arch=(i686 x86_64)
license=(PerlArtistic GPL)
options=(!emptydirs)
-depends=('perl>=5.5.30')
+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=(02db120c0eef87aae1830cc62bdec37b)
-sha512sums=(ff471b01b33414fc5e1c68d97c21171a95d3418c33e3c45f9910cc768898690e35051506a83ad9403a200336654c14b8efc9d471c4b3fe3321047a7603d6fd56)
-_dir="$srcdir/Params-Util-$pkgver"
+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()
-(
- cd "$_dir"
- export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
- unset PERL5LIB PERL_MM_OPT
- /usr/bin/perl Makefile.PL
- make
-)
+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
-check()
-(
- cd "$_dir"
- export PERL_MM_USE_DEFAULT=1
- unset PERL5LIB
- make test
-)
+ cd "$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
-package()
-(
- cd "$_dir"
- make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
-)
+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