# $Id: PKGBUILD 114151 2014-07-01 13:49:07Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman

pkgname=perl-class-singleton
pkgver=1.4
pkgrel=5
pkgdesc="Implementation of a singleton class"
arch=('any')
url="http://search.cpan.org/dist/Class-Singleton"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AB/ABW/Class-Singleton-$pkgver.tar.gz) 
md5sums=('a18b108ab97e2107cbbe816d2b3e2ee3')

build() {
  cd  $srcdir/Class-Singleton-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Class-Singleton-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
