# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-mojolicious _pkgreal=Mojolicious pkgver=7.43 pkgrel=0 pkgdesc="Real-time web framework" url="http://search.cpan.org/dist/Mojolicious/" arch="noarch" license="Artistic-2" 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="c4088a898f0bd6fa7e462b687edf6defe6bbbcb3da477c9b8173de52d9cc21f3293d6fef8165840aa7ed80d8f8efb66d8402ad4de553ccffb9c2a11e2c0e010e Mojolicious-7.43.tar.gz"