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

_realname=Test-Script
pkgname=perl-${_realname}
pkgver=1.29
pkgrel=1
pkgdesc="Basic cross-platform tests for scripts"
arch=('any')
url="https://metacpan.org/release/Test-Script"
groups=('perl-modules')
depends=('perl' 'perl-IPC-Run3' 'perl-Probe-Perl' 'perl-Test-Simple')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/P/PL/PLICEASE/${_realname}-${pkgver}.tar.gz")
sha256sums=('892e7e6c1ea7b16710909942cf5c0bdab70eee2efd4aa9c16ea952e2b90f8950')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

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