aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: a1dfa3b4fe5ecba2b7d4c6c8de57baa2a4333d7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-mojolicious
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Mojolicious
pkgver=9.0
pkgrel=0
pkgdesc="Real-time web framework"
url="https://metacpan.org/release/Mojolicious/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}





sha512sums="0d9d6e9287734ba5c21012334d0066078b7a73343b564186d73f7ba230061d7cca576f4edc82c52e4299a8e4f1c3165c2f28d7c0e0cc2e36712b8ed79f744b6c  Mojolicious-9.0.tar.gz"