# Contributor: Sodface # Maintainer: Sodface pkgname=althttpd pkgver=202402170322 pkgrel=0 pkgdesc="Small, simple, stand-alone HTTP server" url="https://sqlite.org/althttpd/doc/trunk/althttpd.md" arch="all" license="Public-Domain" makedepends="bash openssl-dev>3" options="!strip !check" # no test suite subpackages="$pkgname-doc $pkgname-openrc" source=" $pkgname-$pkgver.tar.gz::https://sqlite.org/althttpd/tarball?r=$pkgver 10-allow-filename-plus-sign.patch 20-homepage-redirect-fix.patch 40-strict-website-match.patch $pkgname.confd $pkgname.initd " builddir="$srcdir" build() { # sed -in '/^CFLAGS/ s/$/ -DLOG_PID/' Makefile # sed -in 's/^CFLAGS=/CFLAGS+=/' Makefile # export CFLAGS="$CFLAGS -DLOG_PID" make CFLAGS+=" -DLOG_PID" althttpsd } 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 -Dm644 althttpd.md \ "$pkgdir"/usr/share/doc/$pkgname/althttpd.md } sha512sums=" 50416175dba53383238faec37773ceb35ba180626c46939c74fdc28df482c28eff909296a3399b51a8ff2ddf44c5d7c7319af214a7951a55e190604f74946ab2 althttpd-202402170322.tar.gz 60aef671e00ddda3ba740d60fa8a17085c4a7b278d3b49e8dc19e7eb1f14c615ca92cc785ea35e6d812a845585eede1f5791d049d0ade1d57980e293dfed5b8c 10-allow-filename-plus-sign.patch 107d864ab46aaca6d431b1d2eba36693f157737343ce9df8ad9d5b25c2b003de125790bf77474133368d8fc5fe691a60ffd97333c63fdde729b536c6a434bc24 20-homepage-redirect-fix.patch a49ce93aeda114f36bc9c609a2d14a64283d9fefe9e10ac76ece886548a713befb1f4e6dc10d574b38fef896fcf54171dc46c2956679b27eda1142c6df3e1c3f 40-strict-website-match.patch 921e95b361ceeda361b244fceda0a42f19f27fd91f1aa714703fbd5b5ffea37dc0c92ff3687205b399ce4c6023017b7cc0b188e897bae34e5aae7413cfc4e477 althttpd.confd f21867430470b836d97d60215d9dda835125140cced3bb9c856349228572f2c73ac0574d3f705d72938879fc2b5a37855768a5f7de5c29943e3aa6ead5d72d9c althttpd.initd "