aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dancer/APKBUILD
blob: 4d97d815dbcf36bfb4d3ad45f79156b51a37eab6 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: 
pkgname=perl-dancer
_pkgreal=Dancer
pkgver=1.3142
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
	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/Y/YA/YANICK/$_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 && make test
}

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

md5sums="3072888c96c377a25ac56334e011b953  Dancer-1.3142.tar.gz"
sha256sums="655fb4b9c2cf27d1c25fd68b90c396fc27381c7075b85bf7f8a71fef626de94f  Dancer-1.3142.tar.gz"
sha512sums="f3093ac7df7aa8ba6739d5d40d7ba2a1274a3114368b9a0ae9cb61bfc9ac6c07918eb225faafc2c452eaafec8599e61faf9ac2a175214758d702602fdb4aa325  Dancer-1.3142.tar.gz"