
hcs
By: a guest on
Nov 9th, 2010 | syntax:
Bash | size: 1.69 KB | hits: 95 | expires: Never
# Contributor: Dieter Plaetinck <dieter@plaetinck.be>
pkgname=uzbl-experimental-git
pkgver=20101109
pkgrel=1
pkgdesc="All uzbl web interface tools: latest from the git experimental 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"
_gitname=experimental
build() {
msg "Connecting to GIT server..."
if [[ -d $srcdir/$pkgname-$pkgver ]]; then
cd $srcdir/$pkgname-$pkgver && git pull origin $_gitname || return 1
else
git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
cd $srcdir/$pkgname-$pkgver
git checkout origin/$_gitname || return 1
fi
msg "GIT checkout done or server timeout"
make
make DESTDIR=$pkgdir PREFIX=/usr install
# some files are missing execute rights
chmod 0755 $pkgdir/usr/bin/uzbl*
# python2 fix
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find $pkgdir/usr/share/uzbl/examples/data -type f) $(find $pkgdir/usr/bin -name 'uzbl*' -type f)
}
# vim:set ts=2 sw=2 et: