aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi-emulate-psgi/APKBUILD
blob: 02862932f0df592877e9f5a10e9f3e0d928083a6 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-cgi-emulate-psgi
_pkgreal=CGI-Emulate-PSGI
pkgver=0.21
pkgrel=0
pkgdesc="PSGI adapter for CGI"
url="http://search.cpan.org/dist/CGI-Emulate-PSGI/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-http-message"
cpanmakedepends=""
depends="$cpandepends perl-cgi"
makedepends="perl-dev perl-test-requires $cpanmakedepends"
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"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="0a068a14697dd22602f414a5765d1c79  CGI-Emulate-PSGI-0.21.tar.gz"
sha256sums="06b8f1864101de69b2264ad3c3a2b15333e428cf9f5d17a777cfc61f8c64093f  CGI-Emulate-PSGI-0.21.tar.gz"
sha512sums="598355fe77f3fa2b71d713809fd73909bbb74b317dc34fb0febed851fc25cfb56ac622d070551f8bdb582ba0ab0bbd69b0e9185d059d5351f02faffe75ea2be8  CGI-Emulate-PSGI-0.21.tar.gz"