31 lines
817 B
Bash
31 lines
817 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-test-fatal
|
|
pkgver=0.014
|
|
pkgrel=2
|
|
pkgdesc="Incredibly simple helpers for testing code with exceptions"
|
|
arch=('any')
|
|
url="https://metacpan.org/release/Test-Fatal"
|
|
license=('GPL-1')
|
|
depends=('perl-try-tiny')
|
|
options=('!emptydirs')
|
|
source=(https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-$pkgver.tar.gz)
|
|
sha512sums=('339d9b33231f8c8d93c0f9374a51458d004568a2f3e28471976e954c35d27efd348f68fb56e3cabd11dc47d37e7ce46282eba967c156ba5081811d221c6a7523')
|
|
|
|
build() {
|
|
cd "$srcdir/Test-Fatal-$pkgver"
|
|
perl Makefile.PL
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/Test-Fatal-$pkgver"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/Test-Fatal-$pkgver"
|
|
make INSTALLDIRS=vendor DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|