Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 1.08 KB  |  hits: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Anonymous
  2. # Generator  : CPANPLUS::Dist::Arch 1.11
  3.  
  4. pkgname='perl-io-socket-ip'
  5. pkgver='0.06'
  6. pkgrel='1'
  7. pkgdesc="Use IPv4 and IPv6 sockets in a protocol-independent way"
  8. arch=('any')
  9. license=('PerlArtistic' 'GPL')
  10. options=('!emptydirs')
  11. depends=('perl-socket-getaddrinfo>=0.17')
  12. makedepends=()
  13. url='http://search.cpan.org/dist/IO-Socket-IP'
  14. source=('http://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.06_005.tar.gz')
  15. md5sums=('4222d9d8dc0233edd9567f6bb2231cba')
  16.  
  17. build() {
  18.   PERL=/usr/bin/perl
  19.   DIST_DIR="${srcdir}/IO-Socket-IP-0.06_005"
  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
  25.  
  26.   cd "$DIST_DIR"
  27.   $PERL Makefile.PL
  28.   make
  29.   make test
  30.   make install
  31.  
  32.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  33. }
  34.  
  35. # Local Variables:
  36. # mode: shell-script
  37. # sh-basic-offset: 2
  38. # End:
  39. # vim:set ts=2 sw=2 et: