updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / weborf / PKGBUILD
blob980c75776bdaedf6a9e98e15946fa40850158ed7
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=weborf
4 pkgver=0.13
5 pkgrel=1
6 pkgdesc="A lightweight webserver designed to rapidly share directories"
7 arch=('i686' 'x86_64')
8 url="http://galileo.dmi.unict.it/wiki/weborf/"
9 license=('GPL3')
10 depends=('file')
11 source=(http://galileo.dmi.unict.it/wiki/weborf/lib/exe/fetch.php?media=download:"$pkgname"_"$pkgver.tar.gz")
12 md5sums=('4bd205e203ef18f0a0c06ce7f8f5daca')
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
16   ./configure --prefix=/usr \
17               --sysconfdir=/etc \
18               --localstatedir=/var \
19               --libexecdir="/usr/lib/$pkgname"
20   sed -i 's|^cgibindir = .*$|cgibindir = /usr/lib/weborf/cgi-bin|' Makefile cgi_wrapper/Makefile
21   make
24 package() {
25   cd "$srcdir/$pkgname-$pkgver"
26   make DESTDIR="$pkgdir/" install
27   rm -rf "$pkgdir/etc/" "$pkgdir/usr/share/man/man5"