diff options
-rw-r--r-- | testing/perl-mojolicious/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-mojolicious/APKBUILD b/testing/perl-mojolicious/APKBUILD new file mode 100644 index 0000000000..6534bd1af5 --- /dev/null +++ b/testing/perl-mojolicious/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-mojolicious +_pkgreal=Mojolicious +pkgver=6.66 +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 +} + +md5sums="037c5baa6f95aef60eded5ae3348cb5d Mojolicious-6.66.tar.gz" +sha256sums="3f847f5391247afacb03e1673aa652746f5b054ee0dd65228aae1bcecc7a0f8f Mojolicious-6.66.tar.gz" +sha512sums="a135e84971086b0368c4e0528019798a5a703b6cf08efa78ef4711320ef59499e7eb03aa3434c11f331e5580d62d603582dac8c52275da8c509b04f80fdbb116 Mojolicious-6.66.tar.gz" |