blob: 1bfa32fe3ec0bea7b51872bed8b8379a62890b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Kars Wang <jaklsy AT gmail.com>
pkgname='perl-math-random-isaac-xs'
pkgver=1.004
pkgrel=1
pkgdesc='C implementation of the ISAAC PRNG algorithm'
_dist='Math-Random-ISAAC-XS'
arch=('i686' 'x86_64')
url="https://metacpan.org/release/$_dist"
license=('PerlArtistic')
depends=('perl>=5.6')
checkdepends=()
makedepends=('perl-extutils-parsexs>=0' 'perl-module-build>=0.2808_01' 'perl-extutils-cbuilder>=0' 'perl-test-nowarnings>=0.084' 'perl-test-simple>=0.62')
provides=()
options=('!emptydirs' 'purge')
source=("http://search.cpan.org/CPAN/authors/id/J/JA/JAWNSY/$_dist-$pkgver.tar.gz")
sha256sums=('9af790eb92d1c6330d33c6daa8decf8a9c5dcc87b81779d6b12e14b931c3b87b')
build() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
/usr/bin/perl Build.PL
./Build
}
check() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
./Build test
}
package() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
./Build install installdirs=vendor destdir="$pkgdir"
}
|