# Template file for 'fcgi'
pkgname=fcgi
version=2.4.6
revision=1
build_style=gnu-configure
hostmakedepends="libtool automake"
short_desc="Fast, open, and secure Web server interface"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="custom:fastcgi"
homepage="https://github.com/FastCGI-Archives/fcgi2"
distfiles="https://github.com/FastCGI-Archives/fcgi2/archive/refs/tags/${version}.tar.gz"
checksum=39af4fb21a6d695a5f0b1c4fa95776d2725f6bc6c77680943a2ab314acd505c1

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense LICENSE
}

fcgi-devel_package() {
	depends="fcgi>=${version}_${revision}"
		short_desc+=" - development files"
		pkg_install() {
			vmove usr/include
			vmove "usr/lib/*.a"
			vmove usr/lib/pkgconfig
			vmove usr/share/man/man3
			vmove "usr/lib/*.so"
		}
}
