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

47 lines
1.2 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=Test-Warnings
pkgname=perl-${_realname}
pkgver=0.038
pkgrel=1
pkgdesc="Test for warnings and the lack of them"
arch=('any')
url="https://metacpan.org/dist/Test-Warnings"
msys2_references=(
'purl: pkg:cpan/ETHER/Test-Warnings'
)
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
groups=('perl-modules')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/${_realname}-${pkgver}.tar.gz")
sha256sums=('3da27e003a3c3cafed3c09b42be05cf9bdbff0bee5c8590a731b02853880a273')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"${pkgdir}"'" \
PERL_MB_OPT="--installdirs vendor --destdir '"${pkgdir}"'" \
PERL_USE_UNSAFE_INC=1 \
MODULEBUILDRC=/dev/null
cd "${srcdir}/${_realname}-$pkgver"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd ${_realname}-${pkgver}
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd ${_realname}-${pkgver}
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}