updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / jumanji-git-gtk2 / PKGBUILD
blobffae22e6c25e1cad901753c43127c2b7056d8a58
1 #Maintainer: k8n <egor.k8n@gmail.com>
3 pkgname=jumanji-git-gtk2
4 pkgver=20120107
5 pkgrel=1
6 pkgdesc="jumanji is a highly customizable and functional web browser based on the libwebkit web content engine and the gtk+ toolkit"
7 arch=('i686' 'x86_64')
8 url="http://pwmt.org/projects/jumanji"
9 license=('custom')
10 depends=('girara-gtk2-git' 'libwebkit>=1.6.1' 'libsoup>=2.36.1')
11 makedepends=('git')
13 conflicts=('jumanji' 'jumanji-git' 'jumanji-git-gtk2')
14 provides=('jumanji' 'jumanji-git' 'jumanji-git-gtk2')
16 _gitroot='git://pwmt.org/jumanji.git'
17 _gitname='jumanji'
18 _branch='develop'
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29     cd $_gitname && git checkout --track -b $_branch origin/$_branch
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   if [ -d ${srcdir}/$_gitname-build ]; then
36     rm -rf ${srcdir}/$_gitname-build
37   fi
39   git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1
40   cd ${srcdir}/$_gitname-build/ || return 1
42   sed -i'' \
43       -e 's/gtk+-3.0/gtk+-2.0/g' \
44       -e 's/girara-gtk3/girara-gtk2/g' \
45       -e 's/webkitgtk-3.0/webkit-1.0/g' \
46       -e 's/javascriptcoregtk-3.0/javascriptcoregtk-1.0/g' \
47       config.mk
48   
49   make DATABASE=plain DESTDIR="$pkgdir/" install || return 1
50   install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"