diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cc4eb7da9e09 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = althttpd-fossil + pkgdesc = The Althttpd Webserver + pkgver = r16.2c5e3f9 + pkgrel = 1 + url = https://sqlite.org/althttpd/ + arch = x86_64 + license = custom:Public Domain + makedepends = fossil + makedepends = gcc + makedepends = make + depends = gcc-libs + provides = althttpd + conflicts = althttpd + source = fossil+https://sqlite.org/althttpd + sha256sums = SKIP + +pkgname = althttpd-fossil diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f51a8086d1e1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Marius Lindvall <(firstname) {cat} varden {dog} info> + +pkgname=althttpd-fossil +pkgver=r16.2c5e3f9 +pkgrel=1 +pkgdesc="The Althttpd Webserver" +arch=('x86_64') +url='https://sqlite.org/althttpd/' +license=('custom:Public Domain') +depends=('gcc-libs') +makedepends=('fossil' 'gcc' 'make') +provides=('althttpd') +conflicts=('althttpd') +source=("fossil+https://sqlite.org/althttpd") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/althttpd" + _hash=$(fossil info | sed -n 's/checkout: *\([0-9a-z]*\).*/\1/p' | cut -c 1-7) + _revision=$(fossil info | sed -n 's/check-ins: *\(.*\)/\1/p') + printf "r%s.%s" "$_revision" "$_hash" +} + +build() { + cd "${srcdir}/althttpd" + make +} + +package() { + cd "${srcdir}/althttpd" + mkdir -p "$pkgdir/usr/bin" + mkdir -p "$pkgdir/usr/share/licenses/althttpd" + mkdir -p "$pkgdir/usr/share/doc/althttpd" + install -Dm755 "althttpd" "$pkgdir/usr/bin/" + install -Dm644 "althttpd.md" "$pkgdir/usr/share/doc/althttpd/" + head -n 10 althttpd.c > "$pkgdir/usr/share/licenses/althttpd/LICENSE" +} |