1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/perl-moox-typetiny: new aport

This commit is contained in:
Wen Heping 2025-06-09 11:22:41 +00:00
parent 4f56baa9c2
commit 6ff044f0bd

View file

@ -0,0 +1,38 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-moox-typetiny
pkgver=0.002003
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=MooX-TypeTiny
pkgdesc="Optimized type checks for Moo + Type::Tiny"
url="https://metacpan.org/release/MooX-TypeTiny/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-moo perl-type-tiny"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/MooX-TypeTiny-$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="
52cfc9b54c9468c411e5033e27fbc3c6af9ef8be1c3ae62cce4e56a40f9a3ac6e4354f990f870702a9061893b64b46262621aa1464ece0c337930b7b0a7d16e6 MooX-TypeTiny-0.002003.tar.gz
"