# Template file for 'hiawatha'
pkgname=hiawatha
version=10.1
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="libxslt-devel mbedtls-devel"
short_desc="Advanced and secure webserver for Unix"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="https://hiawatha-webserver.org"
distfiles="$homepage/files/$pkgname-$version.tar.gz"
checksum=7a46260956b304cd42bb5e56dfe1d8ec7d255ec88c91b01a4a1c55fa10271541
configure_args="
 -DLOG_DIR=/var/log/hiawatha
 -DPID_DIR=/run
 -DWEBROOT_DIR=/var/www
 -DWORK_DIR=/var/lib/hiawatha
 -DUSE_SYSTEM_MBEDTLS=ON
 -DCMAKE_INSTALL_SYSCONFDIR=/etc"
conf_files="/etc/$pkgname/*.conf /etc/$pkgname/*.xslt"
LDFLAGS="-lmbedtls -lmbedx509 -lmbedcrypto"

post_install() {
	vsv hiawatha
}
