summaryrefslogtreecommitdiff
path: root/community/uzbl/PKGBUILD
blob: f24e02dfaf5698d745da98b5d072806086b29225 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $Id: PKGBUILD 115375 2014-07-09 13:28:03Z fyan $
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Dieter Plaetinck <dieter@plaetinck.be>

pkgbase=uzbl
pkgname=('uzbl-core' 'uzbl-browser' 'uzbl-tabbed')
pkgver=2012.05.14
pkgrel=3
arch=('i686' 'x86_64')
url="http://www.uzbl.org"
license=('GPL3')
makedepends=('pkgconfig' 'webkitgtk2>=1.3.13')
source=(uzbl-$pkgver.tar.gz::https://github.com/uzbl/uzbl/archive/$pkgver.tar.gz)
md5sums=('8d644ecb28cb27fbc971c771156dee6f')

build() {
    cd "$srcdir"/uzbl-$pkgver

    # python2 fix
    for file in examples/data/scripts/uzbl*; do
        sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
    done
    sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
           -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
           $(find ./ -name '*.py') bin/*

    # NEW_BG_TAB event fix (merged upstream)
    sed -i -e "s/tab_bg/bg_tab/" bin/uzbl-tabbed

    make
}

package_uzbl-core() {
   pkgdesc="Webpage interface component meant for integration with other tools and scripts"
   depends=('webkitgtk2>=1.3.13')
   optdepends=('socat: to interface with the socket' 'dmenu: to run some of the example scripts'
               'zenity: to run some of the example scripts'
               'python2: to run some of the example scripts'
               'xclip: for clipboard related keybindings'
	       'pygtk: for uzbl-tabbed')
   install=uzbl.install

   cd "$srcdir"/uzbl-$pkgver

   make DESTDIR="$pkgdir" PREFIX=/usr  install-uzbl-core
}

package_uzbl-browser() {
   pkgdesc="A complete browser experience based on uzbl-core"
   depends=("uzbl-core=$pkgver" 'socat' 'zenity' 'xclip' 'dmenu' 'python2')

   cd "$srcdir"/uzbl-$pkgver

   make DESTDIR="$pkgdir" PREFIX=/usr  install-uzbl-browser
   rm -r $pkgdir/usr/bin/uzbl-core $pkgdir/usr/share/uzbl/docs
}

package_uzbl-tabbed() {
   pkgdesc="Tabbing manager providing multiple uzbl-browser instances in 1 window"
   depends=("uzbl-browser=$pkgver" 'pygtk')

   cd "$srcdir"/uzbl-$pkgver

   make DESTDIR="$pkgdir" PREFIX=/usr install-uzbl-tabbed
}