summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db2e9b849b547589ac40568b03575c70eeacda18 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Thiago L. A. Miller <thiago_leisrael@hotmail.com>
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
_distname=Config-MVP
pkgname=perl-config-mvp
pkgver=2.200011
pkgrel=1
pkgdesc="multivalue-property package-oriented configuration"
arch=('any')
url="https://metacpan.org/release/$_distname"
license=('PerlArtistic' 'GPL')
depends=('perl-class-load>=0.17'
         'perl-module-pluggable>=0'
         'perl-moose>=0.91'
         'perl-moosex-oneargnew>=0'
         'perl-params-util>=0'
         'perl-role-hasmessage>=0'
         'perl-role-identifiable>=0'
         'perl-throwable>=0'
         'perl-tie-ixhash>=0'
         'perl-try-tiny>=0')
makedepends=()
checkdepends=('perl-test-fatal>=0')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_distname-$pkgver.tar.gz")
md5sums=('f33a305e495c83a49b2288ab2544ed03')

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$_distname-$pkgver"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$_distname-$pkgver"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$_distname-$pkgver"
  make install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: