Created
October 27, 2010 20:19
-
-
Save badboy/649869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment