# Contributor: Firmicus <francois.archlinux.org> 
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Wael Nasreddine <wael@phoenixlinux.org>
# Contributor: Guillermo A. Amaral <me@guillermoamaral.com> (thewonka)

pkgname=perl-net-server
_cpanname=Net-Server
pkgver=0.99
pkgrel=1
pkgdesc="Extensible, general Perl server engine"
arch=('any')
url="http://search.cpan.org/dist/${_cpanname}"
license=("GPL")
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/R/RH/RHANDOM/${_cpanname}-$pkgver.tar.gz")
md5sums=('1ae03dff8b1009216a2e5d8f4c9a47b1')

build() {
  cd  $srcdir/${_cpanname}-$pkgver

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd  $srcdir/${_cpanname}-$pkgver

  make install DESTDIR=$pkgdir

  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}

# vim:set ts=2 sw=2 et:
