summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 948f01b87e511fa210316fa978ad450a4dbe77ce (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgbase=uzbl-next-git
pkgrel=1
pkgname=('uzbl-core-next-git' 'uzbl-browser-next-git' 'uzbl-tabbed-next-git')
pkgver=2012.05.14.1243.g4067453
arch=('i686' 'x86_64')
url="http://www.uzbl.org"
license=('GPL3')
makedepends=('git')
source=("git+https://github.com/uzbl/uzbl.git#branch=next")
md5sums=('SKIP')
_gitname="uzbl"
options=('!emptydirs')

pkgver() {
  cd "$srcdir"/"$_gitname"
  git describe --tags | sed 's|-|.|g'
}

prepare() {
  cd "$srcdir"/"$_gitname"
  # 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/*
}

build() {
  cd "$srcdir"/"$_gitname"
  make PREFIX=usr
}

package_uzbl-core-next-git() {
  pkgdesc="Webpage interface component meant for integration with other tools and scripts"
  provides=('uzbl-core')
  conflicts=('uzbl-core')
  depends=('webkitgtk' 'cairo')
  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/$_gitname"
  make DESTDIR="$pkgdir" PREFIX=/usr install-uzbl-core
}

package_uzbl-browser-next-git() {
  install=uzbl.install
  arch=('any')
  pkgdesc="A complete browser experience based on uzbl-core"
  depends=("uzbl-core-next-git=$pkgver"
	   'desktop-file-utils' 'python' 'python2')
  provides=('uzbl-browser')
  conflicts=('uzbl-browser')
  install -d $pkgdir/usr/share/appdata
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir/" PREFIX=/usr install install-uzbl-browser
  # avoid conflicts
  rm -f $pkgdir/usr/bin/uzbl-core \
     $pkgdir/usr/share/man/man1/uzbl-core.1.gz \
     $pkgdir/usr/share/uzbl/docs/AUTHORS \
     $pkgdir/usr/share/uzbl/docs/COMMUNITY.md \
     $pkgdir/usr/share/uzbl/docs/CONTRIBUTING.md \
     $pkgdir/usr/share/uzbl/docs/FAQ.md \
     $pkgdir/usr/share/uzbl/docs/INSTALL.md \
     $pkgdir/usr/share/uzbl/docs/README.md \
     $pkgdir/usr/share/uzbl/docs/config.h \
     $pkgdir/usr/bin/uzbl-tabbed
}

package_uzbl-tabbed-next-git() {
  pkgdesc="Tabbing manager providing multiple uzbl-browser instances in 1 window"
  arch=('any')
  depends=('python2')
  provides=('uzbl-tabbed')
  conflicts=('uzbl-tabbed')
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir/" PREFIX=/usr install-uzbl-tabbed
}