blob: 80944ce1e7b3ccb266f442546c0739bad0222c79 (
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
|
# Maintainer: Stefan Göbel <aur —at— subtype —dot— de>
# Contributor: Brian Bidulock <bidulock@Openss7.org>
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
pkgname='perl-log-dispatch'
_module='Log-Dispatch'
_author='D/DR/DROLSKY'
pkgver='2.71'
pkgrel='1'
pkgdesc='Dispatches messages to one or more outputs'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=(
'perl>=5.006'
'perl-devel-globaldestruction'
'perl-dist-checkconflicts>=0.02'
'perl-ipc-run3'
'perl-module-runtime'
'perl-namespace-autoclean'
'perl-params-validationcompiler'
'perl-specio>=0.32'
'perl-try-tiny'
)
checkdepends=(
'perl-test-fatal'
'perl-test-needs'
)
url="https://metacpan.org/release/$_module"
source=("https://cpan.metacpan.org/authors/id/$_author/$_module-$pkgver.tar.gz")
sha256sums=('9d60d9648c35ce2754731eb4deb7f05809ece1bd633b74d74795aed9ec732570')
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
)
}
|