# $Id: PKGBUILD 97505 2013-09-23 00:55:48Z eric $
# Maintainer: 

pkgname=perl-local-lib
pkgver=1.008018
pkgrel=1
pkgdesc="Create and use a local lib/ for perl modules with PERL5LIB"
arch=('any')
url="https://metacpan.org/release/local-lib"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/local-lib-${pkgver}.tar.gz")
md5sums=('25fb4c35753bc2b81072a2d04422a619')

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
}
