1 #Maintainer: Joel Heaton <jheaton at archlinux dot us>
2 #Contributor: Gary Wright <wriggary at g mail dot com>
6 pkgdesc="A Fast and Lightweight Web Server for Linux"
8 url="http://monkey-project.org"
17 install=monkey.install
18 md5sums=('1527d1fbddddcfd69ad328639dcd0eed'
19 '81b12c744ec2bb8efc9f014f90c739ce')
21 _gitroot="git://git.monkey-project.com/monkey"
26 msg "Connecting to GIT server...."
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
38 rm -rf "$srcdir/$_gitname-build"
39 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
46 ./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname \
47 --datadir=/var/www/htdocs --logdir=/var/log/$pkgname \
48 --plugdir=/usr/lib/$pkgname || return 1
51 make DESTDIR="$pkgdir/" install || return 1
52 install -d $pkgdir/etc/rc.d/ || return 1
53 install -m 755 ../monkey $pkgdir/etc/rc.d/monkey || return 1