aboutsummaryrefslogtreecommitdiffstats
path: root/community/althttpd/APKBUILD
blob: 7cd1d2f1b26a38284242ff0dbcfa364983820b45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=althttpd
pkgver=202108141729
pkgrel=1
pkgdesc="Small, simple, stand-alone HTTP server"
url="https://sqlite.org/althttpd/doc/trunk/althttpd.md"
arch="all"
license="Public-Domain"
options="!check" # no test suite
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.zip::https://sqlite.org/althttpd/zip?in=althttpd.c&r=$pkgver
	10-allow-filename-plus-sign.patch
	20-force-GMT-headers.patch
	$pkgname.confd
	$pkgname.initd"
builddir="$srcdir/"

build() {
	gcc $CFLAGS althttpd.c $LDFLAGS -o althttpd
}

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 althttpd "$pkgdir"/usr/bin/althttpd
}

sha512sums="
4b3fe1d2bd6eab1048f6329741322b9dee73493f070bcb84294b6e8150d093b934b01cae74778e22536330dd97f27a119181edfd32401333a020eb3df6e2935b  althttpd-202108141729.zip
d31628a3b6617cc49156fe3680c3d4f964a0b2ed7570edc23b9d52ed6fe7693022067a051b60d2fcb5f695be5a3daa8589fa9ba3c1ac12bd03306925e8a10015  10-allow-filename-plus-sign.patch
9c6acaaa259abb5a9f404d12b27e3b9659064f78f5951c10ee26c67de4f2c775e5223129f640916703a25a96517bd1eb84b7a76e3bc86341f73e12fc121d1e89  20-force-GMT-headers.patch
aeb1252915176d11cddb1ff5f1c13f532bb3df8f52760f71ae087fde90a4d4422cc65570a59adac12232dacc5aed67a673790a019a3d53203899b7909ca8503b  althttpd.confd
f21867430470b836d97d60215d9dda835125140cced3bb9c856349228572f2c73ac0574d3f705d72938879fc2b5a37855768a5f7de5c29943e3aa6ead5d72d9c  althttpd.initd
"