aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-cgi-fast/APKBUILD
blob: 37d0c4af156bf3228d79d0d1ad5eaf850d6dc064 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-cgi-fast
_pkgreal=CGI-Fast
pkgver=2.15
pkgrel=0
pkgdesc="CGI Interface for Fast CGI"
url="https://metacpan.org/release/CGI-Fast"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-cgi perl-fcgi"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-Fast-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make -C "$builddir" test
}

package() {
	make -C "$builddir" DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="b984cbcf5d1d96dd9fcb58b704ae643e127fcdbe37b4d7e7560e5e1219abb849d72c4ff5a2eb45d7f076a126543b06fda282aabf2c3788b8a87f075c081d30c1  CGI-Fast-2.15.tar.gz"