# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-mojolicious _pkgreal=Mojolicious pkgver=7.28 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" prepare() { default_prepare || return 1 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 && make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="0b5206b8dd25c880dfeb9e781134b391ec2e64a118c0d270a15e0679394f1e7ebb234e79e5d83f54927ac103357d7d437727f156989a8b01f15e2c0985b623a0 Mojolicious-7.28.tar.gz"