# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=File-chdir
pkgname=perl-${_realname}
pkgver=0.1011
pkgrel=1
pkgdesc="a more sensible way to change directories"
arch=('any')
url="https://search.cpan.org/dist/File-chdir"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/D/DA/DAGOLDEN/${_realname}-${pkgver}.tar.gz")
sha256sums=('31ebf912df48d5d681def74b9880d78b1f3aca4351a0ed1fe3570b8e03af6c79')

build() {
  cd "$srcdir/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
