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

_realname=Test-Simple
pkgname=perl-${_realname}
pkgver=1.302186
pkgrel=1
pkgdesc="Basic utilities for writing tests"
arch=('any')
url="https://metacpan.org/release/Test-Simple"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('2895c8da7c3fe632e5714c7cc548705202cdbf3afcbc0e929bc5e6a5172265d4')

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

check() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make test
}

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