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