aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-dancer/APKBUILD
blob: cf7c400c092e481035e0c260aa46d97e8897257e (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
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-dancer
_pkgreal=Dancer
pkgver=1.3513
pkgrel=0
pkgdesc="Perl module for Dancer"
url="https://metacpan.org/release/Dancer"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-module-runtime perl-try-tiny perl-hash-merge-simple
	perl-mime-types perl-http-server-simple-psgi perl-http-body
	perl-devel-hide perl-plack perl-libwww perl-test-nowarnings
	perl-data-dump"
makedepends="perl-dev"
checkdepends="perl-yaml perl-http-cookies perl-json perl-http-cookiejar
	perl-test-pod-coverage perl-test-output"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/Dancer-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

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
}

check() {
	make test
}

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

sha512sums="976fece6ab0ffff2303202d04c7c9da6e012c8bc0c719a81b8029b4965a9b682a5fe7a9adb3048e726e8b6f9442b8a52db6d8657749bac6bda90be4991971c85  Dancer-1.3513.tar.gz"