# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-cgi-fast
_pkgreal=CGI-Fast
pkgver=2.13
pkgrel=0
pkgdesc="CGI Interface for Fast CGI"
url="http://search.cpan.org/dist/CGI-Fast"
arch="noarch"
license="PerlArtistic GPL"
depends="perl-cgi perl-fcgi"
depends_dev=""
makedepends="$depends_dev perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/$_pkgreal-$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="58e7010f5cdfa13e8ba4e528dfe2d7bcc4ac33f48482de186ef27ec0a38ac091c9d534761231c7dd947516532c78520259e841533690ffba7b90fb3d0069f53c  CGI-Fast-2.13.tar.gz"
