4 pkgdesc='Simple but complete web server'
6 url='http://inglorion.net/software/muhttpd/'
9 depends=('glibc' 'openssl' 'zlib')
10 makedepends=('bzip2' 'tar' 'gcc' 'patch' 'make')
11 optdepends=('php: for PHP support')
15 backup=('etc/muhttpd/muhttpd.conf' 'etc/muhttpd/types.conf')
18 source=("http://inglorion.net/download/$pkgname-$pkgver.tar.bz2" 'muhttpd-makefile.diff'
19 'muhttpd-rc.d' 'muhttpd-conf.diff')
21 md5sums=('18e7527f11ca6662c8020ad1ded33472' '5f8eee8f2e79afb410c3288a52ebb558'
22 '1d696594bce4a0847c90f47b960ea106' 'cf603b57f76736adf43034c2fcf68f78')
25 cd $srcdir/$pkgname-$pkgver
26 ./configure --prefix /usr --mandir /usr/share/man --without-strndup || return 1
27 patch < ../../muhttpd-makefile.diff || return 1
29 patch < ../../muhttpd-conf.diff || return 1
31 CFLAGS="$CFLAGS -trigraphs" make || return 1
32 PREFIX=$pkgdir make install-package || return 1
33 install -Dp -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
34 install -D -m755 ../../muhttpd-rc.d $pkgdir/etc/rc.d/muhttpd