# $Id: PKGBUILD 124453 2014-12-23 22:21:46Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-local-lib
pkgver=2.000015
pkgrel=1
pkgdesc="Create and use a local lib/ for perl modules with PERL5LIB"
arch=('any')
url="http://search.cpan.org/dist/local-lib/"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/local-lib-$pkgver.tar.gz")
md5sums=('e5b0b8577f58ae7945357991660674e2')

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

check() {
  cd local-lib-${pkgver}
  make test
}

package() {
  cd local-lib-${pkgver}
  make DESTDIR="$pkgdir" install
}
