updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / muhttpd / PKGBUILD
blobff69f0a2f673df9b9a70f66e324dba5dc1c98f78
1 pkgname=muhttpd
2 pkgver=1.1.5
3 pkgrel=1
4 pkgdesc='Simple but complete web server'
5 arch=('i686 x86_64')
6 url='http://inglorion.net/software/muhttpd/'
7 license=('custom')
8 groups=()
9 depends=('glibc' 'openssl' 'zlib')
10 makedepends=('bzip2' 'tar' 'gcc' 'patch' 'make')
11 optdepends=('php: for PHP support')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=('etc/muhttpd/muhttpd.conf' 'etc/muhttpd/types.conf')
16 options=('zipman')
17 install=
18 source=("http://inglorion.net/download/$pkgname-$pkgver.tar.bz2" 'muhttpd-makefile.diff'
19         'muhttpd-rc.d' 'muhttpd-conf.diff')
20 noextract=()
21 md5sums=('18e7527f11ca6662c8020ad1ded33472' '5f8eee8f2e79afb410c3288a52ebb558'
22         '1d696594bce4a0847c90f47b960ea106' 'cf603b57f76736adf43034c2fcf68f78')
24 build() {
25   cd $srcdir/$pkgname-$pkgver
26   ./configure --prefix /usr --mandir /usr/share/man --without-strndup || return 1
27   patch < ../../muhttpd-makefile.diff || return 1
28   cd conf
29   patch < ../../muhttpd-conf.diff || return 1
30   cd ..
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