# $Id: PKGBUILD 99482 2013-10-29 10:21:34Z spupykin $
# Maintainer:

pkgname=perl-file-path-tiny
pkgver=0.7
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')
sha1sums=('97346515a634e66dca59ec029026559fc502231b')

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"
}
