blob: acc7fae24bbfe0deea62d18447088a399f54644c (
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-authentication'
_pkgname='Catalyst-Plugin-Authentication'
pkgver='0.10023'
pkgrel='2'
pkgdesc="Infrastructure plugin for the Catalyst"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.8.1' 'perl-catalyst-plugin-session>=0.10' 'perl-catalyst-runtime' 'perl-class-inspector' 'perl-mro-compat' 'perl-moose' 'perl-moosex-emulate-class-accessor-fast' 'perl-string-rewriteprefix' 'perl-try-tiny' 'perl-namespace-autoclean')
makedepends=('perl-extutils-makemaker>=6.59' 'perl-moose' 'perl-test-exception')
url="https://metacpan.org/release/Catalyst-Plugin-Authentication"
source=("https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/${_pkgname}-${pkgver}.tar.gz")
md5sums=('6df0836bab344ef499d68ee5f50f2369')
sha512sums=('b0882ea35409226e1592b5f5473bdf8fdf44a1ee228837d1eaba082a94f129315533271c9077f8895af19a695c279e3f5aa649c6100b2fa17a0a0b04884c279f')
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
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
|