summaryrefslogtreecommitdiff
path: root/perl-log-dispatch/PKGBUILD
blob: 89a0b6739ddcf01e265bfa9ac0f81a38989030c1 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname='perl-log-dispatch'
pkgver=2.63
pkgrel='2'
pkgdesc='Dispatches messages to one or more outputs'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
provides=(
  'perl-log-dispatch-apachelog=2.63'
  'perl-log-dispatch-base=2.63'
  'perl-log-dispatch-code=2.63'
  'perl-log-dispatch-email=2.63'
  'perl-log-dispatch-email-mailsend=2.63'
  'perl-log-dispatch-email-mailsender=2.63'
  'perl-log-dispatch-email-mailsendmail=2.63'
  'perl-log-dispatch-email-mimelite=2.63'
  'perl-log-dispatch-file=2.63'
  'perl-log-dispatch-file-locked=2.63'
  'perl-log-dispatch-handle=2.63'
  'perl-log-dispatch-null=2.63'
  'perl-log-dispatch-output=2.63'
  'perl-log-dispatch-screen=2.63'
  'perl-log-dispatch-syslog=2.63'
  'perl-log-dispatch-types=2.63'
  'perl-log-dispatch-vars=2.63')
depends=(
  'perl>=5.6.0'
  'perl-base'
  'perl-carp'
  'perl-devel-globaldestruction'
  'perl-dist-checkconflicts>=0.02'
  'perl-encode'
  'perl-exporter'
  'perl-io'
  'perl-module-runtime'
  'perl-namespace-autoclean'
  'perl-params-validationcompiler'
  'perl-parent'
  'perl-scalar-list-utils'
  'perl-specio>=0.32'
  'perl-specio-declare'
  'perl-specio-exporter'
  'perl-specio-library-builtins'
  'perl-specio-library-numeric'
  'perl-specio-library-string'
  'perl-sys-syslog>=0.28'
  'perl-try-tiny')
makedepends=(
  'perl-data-dumper'
  'perl-extutils-makemaker'
  'perl-file-temp'
  'perl-getopt-long'
  'perl-ipc-run3'
  'perl-lib'
  'perl-pathtools'
  'perl-test-fatal'
  'perl-test-needs'
  'perl-test-simple>=0.96')
checkdepends=(
  'perl-test-requires'
  'perl-ipc-run3'
  'perl-test-fatal'
)
url='https://metacpan.org/release/Log-Dispatch'
_distdir="Log-Dispatch-${pkgver}"
source=("https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/${_distdir}.tar.gz")
sha512sums=('4b44ff7d85741eb57b25938b9b92863614a5267f1574b88c20d91a47e6ef2c957ca47be5211f6c735d453f35c0a326d3b07ab044440e24d763ecb9a09a4856c8')

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/$_distdir"
    perl Makefile.PL
    make
  )
}

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

package() {
  cd "$srcdir/$_distdir"
  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: