updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-net-ident / PKGBUILD
blob2a5f71682b846d13d6fe146f1ef87efc4e5cd951
1 # Generated by Xyne::Arch::CPAN 0.07
2 # Contributor: John Gerritse <reaphsharc@gmail.com
4 pkgname=perl-net-ident
5 pkgver=1.23
6 pkgrel=2
7 pkgdesc="Lookup the username on the remote end of a TCP/IP connection"
8 arch=('i686' 'x86_64')
9 url="http://search.cpan.org/dist/Net-Ident/"
10 license=('unknown')
11 source=('http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/Net-Ident-1.23.tar.gz')
12 md5sums=('f9a2943dc6310c1f31458c49f926b007')
13 sha256sums=('d6d4a852a46657da2a9779a6f7948e33d6525840a8a890003cdcb0b9fe351764')
14 depends=('perl-exporter')
15 makedepends=('perl-extutils-makemaker' 'perl-io')
16 options=(!emptydirs)
18 build() {
19   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
20   if [ ! -z "$_dir" ]; then
21     cd $(dirname "$_dir")
22     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23     make  || return 1
24     make install DESTDIR="${pkgdir}" || return 1
26   else
27   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
28   if [ ! -z "$_dir" ]; then
29     cd $(dirname "$_dir")
30     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
31     ./Build  || return 1
32     ./Build install destdir=${pkgdir} || return 1
34   else
35     echo "error: failed to detect build method for $pkgname"
36     echo "you may be able to fix this by editing the PKGBUILD"
37     return 1
38   fi fi
40   # remove perllocal.pod and .packlist
41   find ${pkgdir} -name perllocal.pod -delete
42   find ${pkgdir} -name .packlist -delete
45 # vim:set ts=2 sw=2 et: