mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-mojolicious-plugin-openapi
|
|
pkgver=5.11
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Mojolicious-Plugin-OpenAPI
|
|
pkgdesc="OpenAPI / Swagger plugin for Mojolicious"
|
|
url="https://metacpan.org/release/Mojolicious-Plugin-OpenAPI/"
|
|
arch="noarch"
|
|
license="Artistic-2.0"
|
|
depends="perl perl-json-validator perl-mojolicious"
|
|
checkdepends="perl-text-markdown"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/Mojolicious-Plugin-OpenAPI-$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
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
20a0fcc2fb6a4e79fafd12d9f8a5bc3d43c6df402b0815f6da8192e03a656b9d228a71b5531c74d71e6202cb5169ffadbf6f005e015f289558bfba14b1d418f4 Mojolicious-Plugin-OpenAPI-5.11.tar.gz
|
|
"
|