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