# $Id: PKGBUILD 129841 2015-03-24 11:13:35Z spupykin $
# Maintainer: 

pkgname=cpanminus
pkgver=1.7027
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')
sha1sums=('81b91a48f77b2f7ab5c59a72c82487f696eb91a9')

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
}
