1 # Contributor: Dieter Plaetinck <dieter@plaetinck.be>
2 # Contributer: Brendan Taylor <whateley@gmail.com>
3 # Contributer: L42y <423300@gmail.com>
7 pkgdesc="All uzbl web interface tools: latest from the git master 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-experimental-git')
18 _gitroot="git://github.com/Dieterbe/uzbl.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 #msg "GIT checkout done or server timeout"
34 #msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
41 # thanks Brendan Taylor
42 # for file in examples/data/scripts/uzbl*; do
44 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
46 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
47 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
48 $(find ./ -name '*.py')
54 cd "$srcdir/$_gitname-build"
55 make DESTDIR="$pkgdir" PREFIX=/usr install