public
Created

  • Download Gist
PKGBUILD.uzbl-git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# Contributor: Dieter Plaetinck <dieter@plaetinck.be>
pkgname=uzbl-git
pkgver=20091205
pkgrel=1
pkgdesc="All uzbl web interface tools: latest from the git master branch"
arch=('i686' 'x86_64')
url="http://github.com/Dieterbe/uzbl/"
license=('GPL3')
depends=('libwebkit>=1.1.15' 'gtk2' 'libsoup>=2.24')
optdepends=('socat: to interface with the socket' 'dmenu: to run some of the example scripts' 'bash: to run some of the example scripts' 'zenity: to run some of the example scripts'\
'python2: to run some of the example scripts' 'perl: for the example formfiller' 'pygtk: for uzbl-tabbed' 'pango: for uzbl-tabbed' 'python-simplejson: for session saving in uzbl-tabbed'\
'xclip: for clipboard related keybindings')
makedepends=('git' 'pkgconfig')
provides=('uzbl')
conflicts=('uzbl')
source=()
md5sums=()
 
_gitroot="git://github.com/Dieterbe/uzbl.git"
 
build() {
msg "Connecting to GIT server..."
if [[ -d $srcdir/$pkgname-$pkgver ]]; then
cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
else
git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
cd $srcdir/$pkgname-$pkgver
fi
 
msg "GIT checkout done or server timeout"
 
 
make || return 1
make DESTDIR=$pkgdir PREFIX=/usr install
 
find $pkgdir -name "*.py" -exec sed -i 's#/usr/bin/env python$#/usr/bin/env python2#' {} \;
find $pkgdir -name "*.py" -exec sed -i 's#/usr/bin/python$#/usr/bin/python2#' {} \;
 
for file in uzbl-cookie-daemon uzbl-event-manager uzbl-tabbed
do
sed -i 's#/usr/bin/env python$#/usr/bin/env python2#' $pkgdir/usr/bin/$file
done
 
}
 
# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.