# $Id: PKGBUILD 139100 2015-09-02 09:56:31Z spupykin $
# Maintainer: 

pkgname=cpanminus
pkgver=1.7039
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')
sha1sums=('9d69be03524eb54719fed8e93e106adda8ab3b9a')

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
}
