1 # Generated by Xyne::Arch::CPAN 0.07
2 # Contributor: John Gerritse <reaphsharc@gmail.com>
7 pkgdesc="Socket6 - IPv6 related part of the C socket.h defines and structure manipulators"
9 url="http://search.cpan.org/dist/Socket6/"
10 license=('GPL' 'PerlArtistic')
11 source=('http://search.cpan.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-0.23.tar.gz')
12 md5sums=('2c02adb13c449d48d232bb704ddbd492')
13 sha256sums=('eda753f0197e8c3c8d4ab20a634561ce84011fa51aa5ff40d4dbcb326ace0833')
18 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
19 if [ ! -z "$_dir" ]; then
21 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23 make install DESTDIR="${pkgdir}" || return 1
26 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
27 if [ ! -z "$_dir" ]; then
29 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
31 ./Build install destdir=${pkgdir} || return 1
34 echo "error: failed to detect build method for $pkgname"
35 echo "you may be able to fix this by editing the PKGBUILD"
39 # remove perllocal.pod and .packlist
40 find ${pkgdir} -name perllocal.pod -delete
41 find ${pkgdir} -name .packlist -delete
44 # vim:set ts=2 sw=2 et: