# Maintainer: PktSurf <smlinux@pktsurf.in>
app=darkhttpd
version=1.12
build=1sml
homepage="https://unix4lyfe.org/darkhttpd"
desc="Simple, secure and lightweight HTTP server"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  make
  install -Dm 755 darkhttpd $pkg/bin/darkhttpd
  
  cp $srcdir/LICENSE $pkgdocs/

  mkfinalpkg

}

sha512sums="
92a6e317877f325ba8bf297ab855ff71ea233c0b83e1055dacc8fc2ff0b6eb5f11dca814fa2cce5f480294ef615e28e0551599b017a38ba73d2fd9a16a3ba933  darkhttpd-1.12.tar.lz
"
