aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-math-random-mt-auto
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-12-17 08:49:18 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-12-17 08:50:43 +0000
commitcd1471f5812071083928f19ca4b90d5086513cec (patch)
treec213b7e18d02c9673a27a4bd86cd81cb6a9ae1a6 /community/perl-math-random-mt-auto
parentb981b36c8dadd39d6e3e4d042d981daeb5fc9964 (diff)
downloadaports-cd1471f5812071083928f19ca4b90d5086513cec.tar.bz2
aports-cd1471f5812071083928f19ca4b90d5086513cec.tar.xz
community/perl-math-random-mt-auto: upgrade to 6.23 and modernize
Diffstat (limited to 'community/perl-math-random-mt-auto')
-rw-r--r--community/perl-math-random-mt-auto/APKBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/community/perl-math-random-mt-auto/APKBUILD b/community/perl-math-random-mt-auto/APKBUILD
index 79c8c49b42..6ca886abbc 100644
--- a/community/perl-math-random-mt-auto/APKBUILD
+++ b/community/perl-math-random-mt-auto/APKBUILD
@@ -3,37 +3,39 @@
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-math-random-mt-auto
_pkgreal=Math-Random-MT-Auto
-pkgver=6.22
-pkgrel=3
+pkgver=6.23
+pkgrel=0
pkgdesc="Auto-seeded Mersenne Twister PRNGs"
url="http://search.cpan.org/dist/Math-Random-MT-Auto/"
arch="all"
license="unrestricted"
cpandepends="perl-exception-class perl-object-insideout"
-cpanmakedepends=" "
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="54e42c86369b6172b8b06a88206a89ce Math-Random-MT-Auto-6.22.tar.gz"
-sha256sums="1f2ae9752ba908c126dc2bd3c27cb286543121997f87c5bce578fb2e7f51f01f Math-Random-MT-Auto-6.22.tar.gz"
-sha512sums="9f15623c5a5ce7b7fde77d3189bce605145460b87b946a9c64928f7a5e506cfedd062539c0d2f9728f270825d4ead51d7b60cd76fb0aece2a2036eea576e87e5 Math-Random-MT-Auto-6.22.tar.gz"
+sha512sums="3cdb0a1fee776f6aa91bb7a623bd5b0f2fafa6505fc83352c4b76bdb637b7eb94675fa87b32a0213a1e3baa90e60ddd6330c990f6581abb4dc3cdc7d6e7f8b80 Math-Random-MT-Auto-6.23.tar.gz"