aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-dancer/APKBUILD
blob: 85418aabb0a06f5fd7ef45145e2dd0e8b0de84fe (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
43
44
45
46
47
48
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-dancer
_pkgreal=Dancer
pkgver=1.3512
pkgrel=1
pkgdesc="Perl module for Dancer"
url="http://search.cpan.org/dist/Dancer/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="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"
cpancheckdepends="perl-yaml perl-http-cookies perl-json perl-http-cookiejar 
	perl-test-pod-coverage perl-test-output"
depends="$cpandepends"
checkdepends="$cpancheckdepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	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
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="e35ba7b6cbb2da4d61b054ac13483ea457011fad06a4a9abc596a2878d841f3eba0f5c08dfee0e5887fffba4b57c9b0862721959d1d1de57e2b53046093e8d3c  Dancer-1.3512.tar.gz"