summaryrefslogtreecommitdiff
path: root/pcr/perl-unix-syslog/PKGBUILD
blob: d31065b398911ba68cdcb659c5c15d8954a4b869 (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
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Márcio Silva <coadde@parabola.nu>
pkgname='perl-unix-syslog'
pkgver='1.1'
pkgrel="6"
pkgdesc="Interface to syslog functions in a C-library"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
url='http://search.cpan.org/dist/Unix-Syslog'
source=('http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-1.1.tar.gz')
md5sums=('73d78e309fe9508ffc9a54d84d79aac9')
sha512sums=('cb1ea3846844b7c82e081f3bb778c698b681d1875b83201b1beef2267a288890c6fc62af8edbfbc04553a9caa1ebafa429130e784f31c9531719b11a4c47c3ba')

build() {
  PERL=/usr/bin/perl
  cd "${srcdir}/Unix-Syslog-1.1"
  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 "$DIST_DIR"
  $PERL Makefile.PL
  make
}

check() {
  cd "${srcdir}/Unix-Syslog-1.1"
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  make test
}

package() {
  cd "${srcdir}/Unix-Syslog-1.1"
  make install

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}