# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Bruno Dupuis <lisael@lisael.org>
# Contributor: Rafael Reggiani Manzo <rr.manzo@gmail.com>

pkgname=perl-test-file
pkgver=1.443
pkgrel=3
pkgdesc="This modules provides a collection of test utilities for file attributes."
arch=('any')
url='https://github.com/briandfoy/test-file'
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-test-utf8')
source=("http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Test-File-$pkgver.tar.gz")
sha512sums=('9ad66b3a9dc1c3752a4ec22934db9139ac010ac3237a3de018d4ec4a65ac047f0152ab9e7979a2615412c1af02a1f2dfa0dbfdf5eba5358628b1b443232c45b2')

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

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

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