summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 813cb67dc3298b0343dc0ac43df3f80012845e16 (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
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>

pkgname='perl-data-entropy'
_dist='Data-Entropy'
pkgver='0.008'
pkgrel='1'
pkgdesc="Contains the Data::Entropy module, a collection of fundamental algorithms that use entropy."
arch=('x86_64' 'armv7h' 'aarch64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-crypt-rijndael' 'perl-http-lite' 'perl-data-float' 'perl-params-classify' 'perl-crypt-urandom')
url="https://metacpan.org/release/$_dist"
source=("https://cpan.metacpan.org/authors/id/R/RR/RRWO/$_dist-$pkgver.tar.gz")
md5sums=('378ed905d74a8b6a0bf03a045935a836')
sha512sums=('60f6d54e38a0b24343e7f595d21d1134f1c52bbcdf3224bdae53abcc1fda67cc7629b294b11c8d864f652768e629f2700cad96e0c66391f07117bfd445af197d')
_distdir="$_dist-$pkgver"

build() {
  cd "$srcdir/$_distdir"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  /usr/bin/perl Makefile.PL
  make
}

check() {
  cd "$srcdir/$_distdir"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  make test
}

package() {
  cd "$srcdir/$_distdir"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}