View difference between Paste ID: X8d1bE62 and
SHOW: | | - or go back to the newest paste.
1-
1+
# Contributor: Dieter Plaetinck <dieter@plaetinck.be>
2
pkgname=uzbl-experimental-git
3
pkgver=20101109
4
pkgrel=1
5
pkgdesc="All uzbl web interface tools: latest from the git experimental branch"
6
arch=('i686' 'x86_64')
7
url="http://github.com/Dieterbe/uzbl/"
8
license=('GPL3')
9
depends=('libwebkit>=1.1.15' 'gtk2' 'libsoup>=2.24')
10
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'\
11
            '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'\
12
            'xclip: for clipboard related keybindings')
13
makedepends=('git' 'pkgconfig')
14
provides=('uzbl')
15
conflicts=('uzbl')
16
source=()
17
md5sums=()
18
19
_gitroot="git://github.com/Dieterbe/uzbl.git"
20
_gitname=experimental
21
22
build() {
23
  msg "Connecting to GIT server..."
24
  if [[ -d $srcdir/$pkgname-$pkgver ]]; then
25
    cd $srcdir/$pkgname-$pkgver && git pull origin $_gitname || return 1
26
  else
27
    git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
28
    cd $srcdir/$pkgname-$pkgver
29
    git checkout origin/$_gitname || return 1
30
  fi  
31
32
  msg "GIT checkout done or server timeout"
33
34
  make
35
  make DESTDIR=$pkgdir PREFIX=/usr install
36
37
  # some files are missing execute rights
38
  chmod 0755 $pkgdir/usr/bin/uzbl*
39
40
  # python2 fix
41
  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
42
    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
43
    $(find $pkgdir/usr/share/uzbl/examples/data -type f) $(find $pkgdir/usr/bin -name 'uzbl*' -type f)
44
45
}
46
47
# vim:set ts=2 sw=2 et: