updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / perl-net-radius-server / PKGBUILD
blob7403efcfd7af06a9e460f20c56eb8d14b31be0f5
1 # Contributor: Anonymous
2 # Generator  : CPANPLUS::Dist::Arch 1.12
4 pkgname='perl-net-radius-server'
5 pkgver='1.116'
6 pkgrel='2'
7 pkgdesc="Framework for RADIUS Servers"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-authen-pam' 'perl-berkeleydb' 'perl-class-accessor>=0.27' 'perl-file-find-rule' 'perl-io-async' 'perl-io-prompt' 'perl-mldbm-sync' 'perl-net-radius' 'perl-net-server>=0.94' 'perl-netaddr-ip>=4' 'perl-perl-ldap' 'perl-statistics-descriptive' 'perl-time-stopwatch' 'perl-yaml-syck')
12 makedepends=('perl-test-file-contents')
13 url='http://search.cpan.org/dist/Net-Radius-Server'
14 source=('http://search.cpan.org/CPAN/authors/id/L/LU/LUISMUNOZ/Net-Radius-Server-1.116.tar.gz' 'net-radius-server-fix-constant-export.patch')
15 md5sums=('df88a7819d902f455494f59756fea3ec'
16          'a2be97b34dd571ebfc05e807c2ab757b')
17 _distdir="${srcdir}/Net-Radius-Server-1.116"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     patch -p1 < ${srcdir}/net-radius-server-fix-constant-export.patch
28     /usr/bin/perl Makefile.PL
29     make
30   )
33 check() {
34   cd "$_distdir"
35   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
36     make test
37   )
40 package() {
41   cd "$_distdir"
42   make install
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 # Local Variables:
47 # mode: shell-script
48 # sh-basic-offset: 2
49 # End:
50 # vim:set ts=2 sw=2 et: