Christoph Reiter f0230c32ea More cpan PURLs
2025-08-09 22:47:04 +02:00

38 lines
891 B
Bash

# Maintainer: Peter Budai <peterbudai@hotmail.com>
_realname=Test-Fatal
pkgname=perl-${_realname}
pkgver=0.017
pkgrel=1
pkgdesc="Incredibly simple helpers for testing code with exceptions"
arch=('any')
url="https://metacpan.org/release/Test-Fatal"
msys2_references=(
'purl: pkg:cpan/RJBS/Test-Fatal'
)
groups=('perl-modules')
depends=('perl' 'perl-Try-Tiny')
license=('GPL' 'PerlArtistic')
source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-${pkgver}.tar.gz")
sha256sums=('37dfffdafb84b762efe96b02fb2aa41f37026c73e6b83590db76229697f3c4a6')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() (
cd "${srcdir}/${_realname}-${pkgver}"
make test
)
package() {
cd "${srcdir}/${_realname}-${pkgver}"
make install DESTDIR="${pkgdir}"
}