summaryrefslogtreecommitdiff
path: root/pcr/perl-unix-syslog/PKGBUILD
blob: 84bb3e008421a76e4fe75d9d36b605ac7e650758 (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
# Contributor (Arch): Justin Davis <jrcd83@gmail.com>
# Generator   (Arch): CPANPLUS::Dist::Arch 1.04
# Maintainer        : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>
# Contributor       : Márcio Silva <coadde@parabola.nu>

pkgname='perl-unix-syslog'
pkgver='1.1'
pkgrel='2'
pkgdesc="Interface to syslog functions in a C-library"
arch=('any')
license=('Artistic2.0')
options=('!emptydirs')
depends=('glibc>=2.12.1' 'perl')
url='http://search.cpan.org/dist/Unix-Syslog'
source=("http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-$pkgver.tar.gz")
md5sums=('73d78e309fe9508ffc9a54d84d79aac9')

package() {
  PERL=/usr/bin/perl
  DIST_DIR="${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 &&
    make test &&
    make install;
  } || return 1;

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