# Template file for 'darkhttpd'
pkgname=darkhttpd
version=1.17
revision=1
short_desc="Small and secure static webserver"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="ISC"
homepage="https://unix4lyfe.org/darkhttpd/"
distfiles="https://github.com/emikulic/darkhttpd/archive/refs/tags/v${version}.tar.gz"
checksum=4fee9927e2d8bb0a302f0dd62f9ff1e075748fa9f5162c9481a7a58b41462b56

# Create darkhttpd system user/group
system_accounts="_darkhttpd"
make_dirs="/srv/www/darkhttpd 0755 _darkhttpd _darkhttpd
 /var/log/darkhttpd 0755 _darkhttpd _darkhttpd"

do_build() {
	${CC} ${CFLAGS} ${LDFLAGS} darkhttpd.c -o darkhttpd
}

do_install() {
	vsv darkhttpd
	vbin darkhttpd
	vlicense COPYING LICENSE
}
