# $Id: PKGBUILD 111537 2014-05-19 20:11:24Z spupykin $
# Maintainer: 

pkgname=cpanminus
pkgver=1.7004
pkgrel=1
pkgdesc='Get, unpack, build and install modules from CPAN'
arch=('any')
url="https://metacpan.org/release/App-cpanminus"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-$pkgver.tar.gz")
sha1sums=('cb14e078ae9addb6c8d9fb1e13ef4c032ce12d4d')
sha1sums=('1bbcb48d7d542eb4df8109067c9843f47f86ca5a')

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

check() {
  cd App-cpanminus-$pkgver
  make test
}

package() {
  cd App-cpanminus-$pkgver
  make DESTDIR="$pkgdir" install
}
