# $Id: PKGBUILD 213941 2014-06-01 04:23:08Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>

pkgname=perl-common-sense
pkgver=3.73
pkgrel=1
pkgdesc="Implements some sane defaults for Perl programs"
arch=('any')
url="http://search.cpan.org/dist/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
md5sums=('6da7455a43ab60ed21c2a5e3b3ddeda8')

build() {
  cd common-sense-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd common-sense-$pkgver
  make test
}

package() {
  cd common-sense-$pkgver
  make DESTDIR="$pkgdir" install
}
