summaryrefslogtreecommitdiffstats
path: root/main/perl-plack/APKBUILD
blob: 264f84631593b320876ed614a740790d1341dd48 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-plack
_pkgreal=Plack
pkgver=1.0033
pkgrel=0
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="http://search.cpan.org/dist/Plack/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-file-sharedir perl-filesys-notify-simple perl-devel-stacktrace perl-stream-buffered perl-uri perl-devel-stacktrace-ashtml perl-http-body perl-test-tcp perl-try-tiny perl-apache-logformat-compiler perl-hash-multivalue perl-http-message"
cpanmakedepends="  perl-test-requires "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-file-sharedir-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_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="41292d3c33f637773369daeac86a48b8  Plack-1.0033.tar.gz"
sha256sums="bcd8784b8263bd6d68476e9d52e6f98819bd4f3331455cad12effed63a783220  Plack-1.0033.tar.gz"
sha512sums="bb9335605a103380b06932289d6e99ae9cf58e98fd889542373ef2509269a6e251f1908c168482c455b5b590c8a883072b08c3a7fbfe6596ec60d699e71b2c33  Plack-1.0033.tar.gz"