summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27def81dfbea28357ba3a1c49a52ddb3ed40791d (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
# Contributor: xRemaLx <anton.komolov@gmail.com>

pkgname='perl-catalyst-plugin-enablemiddleware'
_pkgname='Catalyst-Plugin-EnableMiddleware'
pkgver=0.006
pkgrel=5
pkgdesc='Enable Plack Middleware via Configuration'
arch=(any)
license=('perl')
url="https://metacpan.org/release/Catalyst-Plugin-EnableMiddleware"
options=(!emptydirs)

depends=('perl>=5.10.1' 'perl-catalyst-runtime')
makedepends=('perl' 'perl-test-most')

provides=("perl-catalyst-plugin-enablemiddleware=${pkgver}")

source=("https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/${_pkgname}-${pkgver}.tar.gz")
md5sums=('a172715297e50fd13d75b1acab5ea78c')
sha512sums=('71f96829ad90ddb28de30afd372b999da95fb4faf90b2d1ddf10b35c78e7a06c122311260160bc348287a3470c9f0c7151dc863949d53d42cab42ddc52a4dbd7')

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 "${srcdir}/${_pkgname}-${pkgver}"
    /usr/bin/perl Makefile.PL
    make
  )
}

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

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

# vim:set ts=2 sw=2 et: