1 # Contributor: Dieter Plaetinck <dieter@plaetinck.be>
2 # Contributer: Brendan Taylor <whateley@gmail.com>
3 # Contributer: L42y <423300@gmail.com>
4 pkgname=uzbl-experimental-git
7 pkgdesc="All uzbl web interface tools: latest from the git experimental branch"
9 url="http://github.com/Dieterbe/uzbl/"
11 depends=('libwebkit' 'socat' 'zenity' 'xclip' 'dmenu' 'python2' 'pygtk')
12 makedepends=('git' 'pkgconfig' 'libwebkit>=1.2.0')
13 provides=('uzbl-core' 'uzbl-browser' 'uzbl-tabbed')
14 conflicts=('uzbl-core' 'uzbl-browser' 'uzbl-tabbed' 'uzbl-git')
18 _gitroot="git://github.com/Dieterbe/uzbl.git"
19 _gitname="experimental"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin experimental
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
31 cd $_gitname && git checkout origin/experimental
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
42 # thanks Brendan Taylor
43 # for file in examples/data/scripts/uzbl*; do
45 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
47 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
48 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
49 $(find ./ -name '*.py')
55 cd "$srcdir/$_gitname-build"
56 make DESTDIR="$pkgdir" PREFIX=/usr install