blob: 972803b4baa2db56ae38460b1354b44402238d42 (
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
58
59
60
61
62
63
64
|
# Maintainer: Stefan Göbel <aur —at— subtype —dot— de>
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
pkgname='perl-log-dispatchouli'
_module='Log-Dispatchouli'
_author='R/RJ/RJBS'
pkgver='3.008'
pkgrel='1'
pkgdesc='A simple wrapper around Log::Dispatch.'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
'perl-log-dispatch'
'perl-log-dispatch-array'
'perl-params-util'
'perl-string-flogger'
'perl-sub-exporter'
'perl-sub-exporter-globexporter>=0.002'
'perl-try-tiny>=0.04'
)
checkdepends=(
'perl-eval-closure'
'perl-namespace-autoclean'
'perl-params-validationcompiler'
'perl-specio'
'perl-test-deep'
'perl-test-fatal'
)
url="https://metacpan.org/release/$_module"
source=("https://cpan.metacpan.org/authors/id/$_author/$_module-$pkgver.tar.gz")
sha256sums=('7318665b7bcec3cad8dfda1ffe7f026a2d564c721ad31843e3d6e8f5a5ad22ef')
build() {
(
cd "$_module-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps'
perl Makefile.PL INSTALLDIRS='vendor'
make
)
}
check() {
(
cd "$_module-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1'
make test
)
}
package() {
(
cd "$_module-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS='vendor' DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -delete
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -type d -empty -delete
)
}
#:indentSize=3:tabSize=3:noTabs=true:mode=shellscript:maxLineLen=87:
|