void-packages/srcpkgs/darkhttpd/template

21 lines
548 B
Bash

# Template file for 'darkhttpd'
pkgname=darkhttpd
version=1.12
revision=1
short_desc="A small and secure static webserver"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD"
homepage="http://dmr.ath.cx/net/darkhttpd/"
distfiles="$homepage/$pkgname-$version.tar.bz2"
checksum=a50417b622b32b5f421b3132cb94ebeff04f02c5fb87fba2e31147d23de50505
CFLAGS="$CFLAGS $LDFLAGS"
do_build() {
${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${pkgname}.c -o ${pkgname}
}
do_install() {
vbin ${pkgname}
sed -n '0,/^$/p' darkhttpd.c > LICENSE
vlicense LICENSE
}