# $Id: PKGBUILD 91389 2013-05-21 15:33:51Z eric $
# Maintainer:

pkgname=perl-file-path-tiny
pkgver=0.5
pkgrel=1
pkgdesc='recursive versions of mkdir() and rmdir() without as much overhead as File::Path'
arch=('any')
url="https://metacpan.org/release/File-Path-Tiny"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/File-Path-Tiny-$pkgver.tar.gz")
sha1sums=('cc39f65c3c84f476f8ae8549d7c59b01dfbf1179')

build() {
  cd File-Path-Tiny-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd File-Path-Tiny-$pkgver
  make test
}

package() {
  cd File-Path-Tiny-$pkgver
  make install DESTDIR="$pkgdir"
}
