APKBUILD 1.41 KB
Newer Older
1
# Automatically generated by apkbuild-cpan, template 1
2
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
3 4
pkgname=perl-dancer
_pkgreal=Dancer
5
pkgver=1.3202
6 7 8 9 10 11 12 13
pkgrel=0
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
14
	perl-devel-hide perl-plack perl-libwww perl-test-nowarnings"
15 16 17
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
18
source="http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/$_pkgreal-$pkgver.tar.gz"
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

_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 && make test
}

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

40 41 42
md5sums="63767e3afc4ee268d78da01345cf79c1  Dancer-1.3202.tar.gz"
sha256sums="a933e4f8203c7d6c7e0b2bcdd8e54c65095029616b8d07802db4db2fc2657faa  Dancer-1.3202.tar.gz"
sha512sums="d2865b694a36375ce3266bca5a1223b1e62365176b750e91fe428e7f8315a061c30b930285ee76c894881e40f4cefa539e3f806b81ae6b6897631ba34dd53676  Dancer-1.3202.tar.gz"