updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / monkey-git / PKGBUILD
blob8d363bae8597578b54a5fce6272a6f6aeb916f80
1 #Maintainer: Joel Heaton <jheaton at archlinux dot us>
2 #Contributor: Gary Wright <wriggary at g mail dot com>
3 pkgname=monkey-git
4 pkgver=20111009
5 pkgrel=1
6 pkgdesc="A Fast and Lightweight Web Server for Linux"
7 arch=('i686' 'x86_64')
8 url="http://monkey-project.org"
9 license=('GPL2')
10 depends=('gcc-libs')
11 optdepends=('php')
12 makedepends=('git')
13 provides=('monkey')
14 conflicts=('monkey')
15 source=(monkey
16         monkey.install)
17 install=monkey.install
18 md5sums=('1527d1fbddddcfd69ad328639dcd0eed'
19          '81b12c744ec2bb8efc9f014f90c739ce')
21 _gitroot="git://git.monkey-project.com/monkey"
22 _gitname="Monkey"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
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"
42   #
43   # BUILD HERE
44   #
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
50   make || 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
54