Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

perl-io-socket-ip

By: a guest on Nov 10th, 2013  |  syntax: Bash  |  size: 1.47 KB  |  views: 53  |  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: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com>
  2. # Generator  : CPANPLUS::Dist::Arch 1.25
  3.  
  4. pkgname='perl-io-socket-ip'
  5. pkgver='0.24'
  6. pkgrel='1'
  7. pkgdesc="A drop-in replacement for IO::Socket::INET supporting"
  8. arch=('any')
  9. license=('PerlArtistic' 'GPL')
  10. options=('!emptydirs')
  11. depends=('perl')
  12. makedepends=()
  13. url='http://search.cpan.org/dist/IO-Socket-IP'
  14. source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/IO-Socket-IP-$pkgver.tar.gz")
  15. md5sums=('dacc069853bc5aab4e4e06c7d7cc6ac8')
  16. sha512sums=('4508d39849108da611edd16f2177bcf30415849e50bc7aa591c68c089a235abef105a0a396bbeb7dcb12e99a8918e63f911bbeca7a976678a2450676b5c08427')
  17. _distdir="IO-Socket-IP-$pkgver"
  18.  
  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
  25.  
  26.     cd "$srcdir/$_distdir"
  27.     /usr/bin/perl Makefile.PL
  28.     make
  29.   )
  30. }
  31.  
  32. check() {
  33.   cd "$srcdir/$_distdir"
  34.   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  35.     make test
  36.   )
  37. }
  38.  
  39. package() {
  40.   cd "$srcdir/$_distdir"
  41.   make install
  42.  
  43.   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
  44. }
  45.  
  46. # Local Variables:
  47. # mode: shell-script
  48. # sh-basic-offset: 2
  49. # End:
  50. # vim:set ts=2 sw=2 et: