# Contributor: Sodface # Maintainer: Sodface pkgname=althttpd pkgver=202405181722 pkgrel=0 pkgdesc="Small, simple, stand-alone HTTP server" url="https://sqlite.org/althttpd/doc/trunk/althttpd.md" arch="all" license="Public-Domain" makedepends="openssl-dev>3 sqlite-dev" options="!check" # no test suite subpackages="$pkgname-doc $pkgname-openrc $pkgname-utils" source=" $pkgname-$pkgver.tar.gz::https://sqlite.org/althttpd/tarball?r=$pkgver 10-allow-filename-plus-sign.patch 40-strict-website-match.patch $pkgname.confd $pkgname.initd " builddir="$srcdir" build() { sed -in -e 's/^CFLAGS=/CFLAGS+=/' Makefile make althttpsd logtodb } package() { install -Dm 644 "$srcdir"/althttpd.confd \ "$pkgdir"/etc/conf.d/althttpd install -Dm 755 "$srcdir"/althttpd.initd \ "$pkgdir"/etc/init.d/althttpd install -D althttpsd \ "$pkgdir"/usr/bin/althttpd install -D logtodb \ "$pkgdir"/usr/bin/logtodb install -Dm644 althttpd.md \ "$pkgdir"/usr/share/doc/$pkgname/althttpd.md } utils() { pkgdesc="$pkgname utilities" amove /usr/bin/logtodb } sha512sums=" a199d9c96582abca3a37c69b58ab08b5db9bc567db1aaec6c7a4b22f0b166366ae8e9f2361594f2345172a2f75f4b4dcc17e708396a422daa05fb6b5eadd26e5 althttpd-202405181722.tar.gz ece2633a822589f1e49129bf00fb4b066e9d079e3e56f7c78e3bcba02c8aad9ae3ee75f6459360524d7c2a3a7dc7cfea4eb1652b4cbf1aff60d968e1f816b535 10-allow-filename-plus-sign.patch a49ce93aeda114f36bc9c609a2d14a64283d9fefe9e10ac76ece886548a713befb1f4e6dc10d574b38fef896fcf54171dc46c2956679b27eda1142c6df3e1c3f 40-strict-website-match.patch 921e95b361ceeda361b244fceda0a42f19f27fd91f1aa714703fbd5b5ffea37dc0c92ff3687205b399ce4c6023017b7cc0b188e897bae34e5aae7413cfc4e477 althttpd.confd f21867430470b836d97d60215d9dda835125140cced3bb9c856349228572f2c73ac0574d3f705d72938879fc2b5a37855768a5f7de5c29943e3aa6ead5d72d9c althttpd.initd "