aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mojolicious/APKBUILD
blob: 14305d387d5d6583cb9d64bb47d65812cc5a7817 (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.17
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="3ffb970f7561753ccacaf3a9e465b4be  Mojolicious-7.17.tar.gz"
sha256sums="9cfe8af5403a7c8dadbeec676ab041abd23834c1fd46990d0dfab5b4cd0ae2a9  Mojolicious-7.17.tar.gz"
sha512sums="7998933fc975d6b1b8d99cba3a683fcceae636d3fa8399bb0b15884393b749ad12bac812dfb0817c75d4842e78318ea853aa6d82e9e49f06b4a1d309090708d2  Mojolicious-7.17.tar.gz"