aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: 13cfd60386f56485785361823a3ecd9ae89404b2 (plain)
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
40
41
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=7.11
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="f667361d9815121536c8d3c125351bd0  Mojolicious-7.11.tar.gz"
sha256sums="35fe21323fed8cdc8e9e497c7ca634e3aedcd9db0933dcafd6111a35ba8be764  Mojolicious-7.11.tar.gz"
sha512sums="4ccb3c2e82328dbd01ecd8fc6d0934dc4ad215d443a0a2a7af0d1822d692b5bee96c8103c0361a89c3708c7c1363842e0a4a008c963fa59f420afbee0aba25ea  Mojolicious-7.11.tar.gz"