# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-dancer
_pkgreal=Dancer
pkgver=1.3202
pkgrel=1
pkgdesc="Perl module for Dancer"
url="http://search.cpan.org/dist/Dancer/"
arch="noarch"
license="GPL PerlArtistic"
cpanmakedepends=""
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"
depends="$cpandepends"
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="d2865b694a36375ce3266bca5a1223b1e62365176b750e91fe428e7f8315a061c30b930285ee76c894881e40f4cefa539e3f806b81ae6b6897631ba34dd53676  Dancer-1.3202.tar.gz"
