updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / jumanji / PKGBUILD
blob8af5c1272182f74cf56bbaf4f179e7041a743dd1
1 #Maintainer: hzqtc <hzqtc1229@gmail.com>
3 pkgname=jumanji
4 pkgver=20110811
5 pkgrel=1
6 pkgdesc="a web browser"
7 arch=('i686' 'x86_64')
8 url="http://pwmt.org/projects/jumanji"
9 license=('custom')
10 depends=('libwebkit>=1.2.1' 'libsoup>=2.22.4' 'libunique>=1.1.2' 'gtk2>=2.18.6' 'glib2>=2.22.4')
11 makedepends=('git')
13 conflicts=('jumanji' 'jumanji-git')
14 provides=('jumanji' 'jumanji-git')
16 _gitroot='git://pwmt.org/jumanji.git'
17 _gitname='jumanji'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28     cd $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   if [ -d ${srcdir}/$_gitname-build ]; then
35     rm -rf ${srcdir}/$_gitname-build
36   fi
38   git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
39   cd ${srcdir}/$_gitname-build/ || return 1
41   make DATABASE=plain DESTDIR="$pkgdir/" install || return 1
42   install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"