diff options
author | Anton Leontiev | 2015-08-12 10:51:38 +0300 |
---|---|---|
committer | Anton Leontiev | 2015-08-12 10:51:38 +0300 |
commit | ea4a7b2119c113f827d17cf52ea855ca020dc4d1 (patch) | |
tree | e340d4d2b9b49716389eaa02a4d9d69e4ff0dcc7 | |
parent | 4ba8c0eccc17e5c30bcbe3e804b64403486f764f (diff) | |
download | aur-ea4a7b2119c113f827d17cf52ea855ca020dc4d1.tar.gz |
Updated to v0.0409
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | PKGBUILD.tt | 10 |
3 files changed, 30 insertions, 14 deletions
@@ -1,16 +1,16 @@ pkgbase = perl-ouch pkgdesc = Perl module for exceptions that don't hurt - pkgver = 0.0408 + pkgver = 0.0409 pkgrel = 1 - url = http://search.cpan.org/dist/Ouch + url = https://metacpan.org/release/Ouch arch = any license = PerlArtistic license = GPL checkdepends = perl-test-trap depends = perl>=5.10.1 options = !emptydirs - source = http://search.cpan.org/CPAN/authors/id/R/RI/RIZEN/Ouch-0.0408.tar.gz - md5sums = f3cd70271ba8f7598569bc04097b7881 + source = http://search.cpan.org/CPAN/authors/id/R/RI/RIZEN/Ouch-0.0409.tar.gz + md5sums = 7bfb9b0724761d845bba6ba3945f53f2 pkgname = perl-ouch @@ -1,33 +1,41 @@ # CPAN Name : Ouch # Contributor: Anton Leontiev <bunder /at/ t-25.ru> -# Generator : CPANPLUS::Dist::Arch 1.28 +# Generator : CPANPLUS::Dist::Arch 1.30 pkgname=perl-ouch -pkgver=0.0408 +pkgver=0.0409 pkgrel=1 pkgdesc="Perl module for exceptions that don't hurt" arch=('any') -url='http://search.cpan.org/dist/Ouch' +url='https://metacpan.org/release/Ouch' license=('PerlArtistic' 'GPL') depends=('perl>=5.10.1') checkdepends=('perl-test-trap') -source=(http://search.cpan.org/CPAN/authors/id/R/RI/RIZEN/Ouch-0.0408.tar.gz) +source=(http://search.cpan.org/CPAN/authors/id/R/RI/RIZEN/Ouch-0.0409.tar.gz) options=(!emptydirs) -md5sums=('f3cd70271ba8f7598569bc04097b7881') +md5sums=('7bfb9b0724761d845bba6ba3945f53f2') + +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 +} build() { - cd Ouch-0.0408 - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + cd Ouch-0.0409 + sanitize + perl Makefile.PL INSTALLDIRS=vendor make } check() { - cd Ouch-0.0408 + cd Ouch-0.0409 + sanitize make test } package() { - cd Ouch-0.0408 + cd Ouch-0.0409 + sanitize make install DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } diff --git a/PKGBUILD.tt b/PKGBUILD.tt index 31ee99c4e58d..9726380ff0eb 100644 --- a/PKGBUILD.tt +++ b/PKGBUILD.tt @@ -15,19 +15,27 @@ source=([% source %]) options=(!emptydirs) md5sums=('[% md5sums %]') +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 +} + build() { cd [% distdir %] - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + sanitize + perl Makefile.PL INSTALLDIRS=vendor make } check() { cd [% distdir %] + sanitize make test } package() { cd [% distdir %] + sanitize make install DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } |