# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-mojolicious _pkgreal=Mojolicious pkgver=8.26 pkgrel=0 pkgdesc="Real-time web framework" url="https://metacpan.org/release/Mojolicious" arch="noarch" license="Artistic-2.0" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" check() { make test } prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="3e1c5922c84e36fea57c9b4ded39561ad03510b518c8cad8e26e27a363c02999b83a95a3c73fcdc30dfa98603191e359301c65d19e9d196f16c43fe887eeb9c8 Mojolicious-8.26.tar.gz"