# Template file for 'ngircd'
pkgname=ngircd
version=26
revision=2
build_style=gnu-configure
configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes"
hostmakedepends="pkg-config"
makedepends="zlib-devel openssl-devel"
conf_files="/etc/ngircd.conf"
short_desc="Free, portable and lightweight Internet Relay Chat server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://ngircd.barton.de/"
distfiles="https://ngircd.barton.de/pub/ngircd/ngircd-${version}.tar.xz"
checksum=56dcc6483058699fcdd8e54f5010eecee09824b93bad7ed5f18818e550d855c6

post_configure() {
	echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h
}
post_install() {
	vsv ngircd
}
