1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/perl-carp-assert-more/APKBUILD
2025-04-13 14:56:08 +00:00

38 lines
1 KiB
Text

# Contributor: Wen Heping <wenheping2000@hotmail.com>
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
pkgname=perl-carp-assert-more
pkgver=2.9.0
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Carp-Assert-More
pkgdesc="Perl module for Carp-Assert-More"
url="https://metacpan.org/release/Carp-Assert-More/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
checkdepends="perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Carp-Assert-More-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
b9e6b6e0b6a0a4e80f65659e34deb5e0963c1375ab485982805dfee58922d901c1cf3fece79e20348495367903777729da3955e05f1d7546df08912ab33f7ba4 Carp-Assert-More-2.9.0.tar.gz
"