diff options
author | root <root@rshg054.dnsready.net> | 2012-06-16 00:01:25 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-16 00:01:25 +0000 |
commit | 94fa10f3a918892a08707aa27eb32a83a4959879 (patch) | |
tree | 27111dcbae78f85f5016ac49dd08eff5f7e976c0 /community/perl-params-util | |
parent | 0f99ce5b4d8585285835a277dcbdaf1493d00635 (diff) |
Sat Jun 16 00:01:25 UTC 2012
Diffstat (limited to 'community/perl-params-util')
-rw-r--r-- | community/perl-params-util/PKGBUILD | 67 |
1 files changed, 31 insertions, 36 deletions
diff --git a/community/perl-params-util/PKGBUILD b/community/perl-params-util/PKGBUILD index 231c569ee..415ad5810 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 71823 2012-06-02 10:31:54Z bluewind $ +# Maintainer: Justin Davis (juster) <jrcd83@gmail.com> +# $Id: PKGBUILD 72466 2012-06-15 00:05:46Z juster $ pkgname=perl-params-util -pkgver=1.04 -pkgrel=2 -pkgdesc="Simple, compact and correct param-checking functions" +pkgver=1.07 +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') +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 |