# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=apache-mod-fcgid
_pkgreal=mod_fcgid
pkgver=2.3.9
pkgrel=6
pkgdesc="FastCGI module for Apache 2.x"
url="https://httpd.apache.org/mod_fcgid/"
arch="all"
license="Apache-2.0"
depends="apache2"
makedepends="apache2-dev"
subpackages="$pkgname-doc"
source="https://www.apache.org/dist/httpd/mod_fcgid/$_pkgreal-$pkgver.tar.gz
	$_pkgreal.conf
	"
builddir="$srcdir"/$_pkgreal-$pkgver
options="!check"

build() {
	./configure.apxs
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -d "$pkgdir"/var/www/localhost/fcgi-bin
	install -Dm644 "$srcdir"/$_pkgreal.conf "$pkgdir"/etc/apache2/conf.d/$_pkgreal.conf
	rm -fr "$pkgdir"/etc/apache2/original
}

sha512sums="
cae8bf8ad324512a51e6f34cb32468ea49a17deaabd481f8b581444891656f2516f10d198630f92ebc18db3d575f61dd7254153938a8206fb6c1441c7850be63  mod_fcgid-2.3.9.tar.gz
e5d7d81905f7cd73b5dbd3baa39c1d84e3c96e3fc3fda41fc52ada1a4353ca5186e53f56d782273d86a858cc9215c72321f34d92643ac176d4232df638a05812  mod_fcgid.conf
"
