# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-mojolicious _pkgreal=Mojolicious pkgver=8.33 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="a8545ea2546e2d2fec8cd409ea1c5075ba2e8e30c755baaae9eec9b70c913937f12b160b5b89f186ba5693c98a50508d85a210595a5b6b1f77a956b7bbb14a13 Mojolicious-8.33.tar.gz"