mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-moox-typetiny: new aport
This commit is contained in:
parent
4f56baa9c2
commit
6ff044f0bd
1 changed files with 38 additions and 0 deletions
38
testing/perl-moox-typetiny/APKBUILD
Normal file
38
testing/perl-moox-typetiny/APKBUILD
Normal 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
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue