# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-env-shellwords
pkgver=0.02
pkgrel=8
pkgdesc="Environment variables for arguments as array"
arch=(any)
license=('PerlArtistic')
url="https://metacpan.org/release/Env-ShellWords"
depends=('perl')
makedepends=('perl-test2-suite')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Env-ShellWords-$pkgver.tar.gz")
sha512sums=('33bea16332b5a3a1dbb5fbcff7a184dac3893f444400163d74f79943b3e130d6eebc26c94f761fe77178803e8a124ba4a7fb4b4b3f836adca7ef9193b14eb6fc')

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

check() {
  cd Env-ShellWords-$pkgver
  make test
}

package() {
  cd Env-ShellWords-$pkgver
  make DESTDIR="$pkgdir" install
}
