summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leontiev2018-04-15 08:52:20 +0300
committerAnton Leontiev2018-04-15 08:52:20 +0300
commit5260dc1b4c6b381bc7bef955ca33cf53fe9c9bf8 (patch)
tree4ba0381f7b822977983134c45846c4eb4f73fd10
parent028c85411d6f2b072cf3041771ee3d2448761553 (diff)
downloadaur-5260dc1b4c6b381bc7bef955ca33cf53fe9c9bf8.tar.gz
Update to v0.16
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD31
-rw-r--r--PKGBUILD.tt11
3 files changed, 36 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9d3dd2657b3..1b67055249f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = perl-algorithm-permute
pkgdesc = Perl package for handy and fast permutations with object oriented interface
- pkgver = 0.12
- pkgrel = 2
- url = http://search.cpan.org/dist/Algorithm-Permute
+ pkgver = 0.16
+ pkgrel = 1
+ url = https://metacpan.org/release/Algorithm-Permute
arch = i686
arch = x86_64
license = GPL
+ checkdepends = perl-test-leaktrace
depends = perl
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/E/ED/EDPRATOMO/Algorithm-Permute-0.12.tar.gz
- md5sums = 93c9e11af9511390379720fe046fb960
+ source = http://search.cpan.org/CPAN/authors/id/S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz
+ md5sums = baa3ca012c8f7e37b5c479a7c1439cb4
pkgname = perl-algorithm-permute
diff --git a/PKGBUILD b/PKGBUILD
index cc504348166..8fb1ac37924 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,41 @@
# CPAN Name : Algorithm::Permute
-# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
-# Generator : CPANPLUS::Dist::Arch 1.28
+# Contributor: Anton Leontiev <scileont /at/ gmail.com>
+# Generator : CPANPLUS::Dist::Arch 1.32
pkgname=perl-algorithm-permute
-pkgver=0.12
-pkgrel=2
+pkgver=0.16
+pkgrel=1
pkgdesc='Perl package for handy and fast permutations with object oriented interface'
arch=('i686' 'x86_64')
-url='http://search.cpan.org/dist/Algorithm-Permute'
+url='https://metacpan.org/release/Algorithm-Permute'
license=('GPL')
depends=('perl')
-source=(http://search.cpan.org/CPAN/authors/id/E/ED/EDPRATOMO/Algorithm-Permute-0.12.tar.gz)
+checkdepends=('perl-test-leaktrace')
+source=(http://search.cpan.org/CPAN/authors/id/S/SL/SLOYD/Algorithm-Permute-0.16.tar.gz)
options=(!emptydirs)
-md5sums=('93c9e11af9511390379720fe046fb960')
+md5sums=('baa3ca012c8f7e37b5c479a7c1439cb4')
+
+sanitize() {
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+}
build() {
- cd Algorithm-Permute-0.12
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ cd Algorithm-Permute-0.16
+ sanitize
+ perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd Algorithm-Permute-0.12
+ cd Algorithm-Permute-0.16
+ sanitize
make test
}
package() {
- cd Algorithm-Permute-0.12
+ cd Algorithm-Permute-0.16
+ sanitize
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/PKGBUILD.tt b/PKGBUILD.tt
index 1adbe713371..f222345fb30 100644
--- a/PKGBUILD.tt
+++ b/PKGBUILD.tt
@@ -10,23 +10,32 @@ arch=('i686' 'x86_64')
url='[% url %]'
license=('GPL')
depends=('perl')
+checkdepends=('perl-test-leaktrace')
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
}