aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: 0cf92a9dcb68487cfd98f13d98d839ba21497e4a (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
# 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=8.24
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"

check() {
	make test
}

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

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

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

sha512sums="581806fc13d730925a9a970a155d22c96ae88ce1e00ebbfad35b85d054f6be2e7ae09d2f1732136cbbbf882148a7af68b83539a621d9d2dede46be79c48b1e3a  Mojolicious-8.24.tar.gz"