summaryrefslogtreecommitdiffstats
path: root/perl-unix-syslog/PKGBUILD
blob: b6be3de419dc45770e744d8ac5eea866eacc41fb (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
# Contributor: Piotr Beling <qwak@w8.pl>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Maintainer: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)

pkgname='perl-unix-syslog'
pkgver='0.100'
pkgrel='2'
pkgdesc='Perl interface to the UNIX syslog calls.'
url='http://search.cpan.org/~mharnisch/Unix-Syslog-0.100/'
arch=('i686' 'x86_64')
depends=('perl>=5.8.4')
source=("http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-${pkgver}.tar.gz")
md5sums=('655d2e04a043b3e92d1bb47caf8e8a3b')
install="${pkgname}.install"

build()
{

	cd ${startdir}/src/Unix-Syslog-${pkgver}

	eval $(perl -V:archname)

	perl Makefile.PL INSTALLARCHLIB=/usr/lib/perl5/current/${archname} INSTALLSITELIB=/usr/lib/perl5/site_perl/current INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}

	make || return 1

	make DESTDIR=${startdir}/pkg install || return 1

	find ${startdir}/pkg -name '.packlist' -exec rm -f {} \;
	find ${startdir}/pkg -name 'perllocal.pod' -exec rm -f {} \;

}