# Maintainer: Michael Kuc # Contributor: Anthony G. Basile pkgname=sthttpd-git pkgver=2.27.1 pkgrel=1 epoch= pkgdesc="a fork of thttpd, a tiny/turbo/throttling HTTP server" arch=('x86_64') url="https://github.com/blueness/sthttpd" license=('custom:BSD') groups=() makedepends=() checkdepends=() optdepends=() provides=('thttpd') conflicts=('sthttpd') replaces=('thttpd') backup=() options=() changelog= source=("git+https://github.com/blueness/sthttpd.git" "config" "thttpd.h") noextract=() sha256sums=("SKIP" "0aab1ed67c057ad5755a6c8530554236f48f4e5371e7611e090852d43bcfca9e" "SKIP") prepare() { cd "$srcdir/sthttpd/" ./autogen.sh } build() { cd "$srcdir/sthttpd/" ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man mv "$srcdir/thttpd.h" "$srcdir/sthttpd/src/" make } check() { : } package() { cd "$srcdir/sthttpd/" make DESTDIR="${pkgdir}/" install install -Dm644 ../config "${pkgdir}"/etc/thttpd.conf install -Dm644 README.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # Avoid conflicts with Apache mv "${pkgdir}"/usr/bin/htpasswd{,-thttpd} mv "${pkgdir}"/usr/share/man/man1/htpasswd{,-thttpd}.1 }