summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5572a3512c0cfb8986952d6c1a686420ab6e696 (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
# Maintainer: Louis Jencka <louis@jencka.us>
pkgbase=uzbl-next-git
pkgrel=1
pkgname=("uzbl-core-next-git" "uzbl-browser-next-git" "uzbl-tabbed-next-git")
pkgver=v0.9.1.191.g676b47e3
arch=("any")
url="http://www.uzbl.org"
license=("GPL3")
depends=("webkitgtk" "webkit2gtk" "cairo")
makedepends=("git" "python-wheel")
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"
}

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")
  optdepends=("socat: to interface with the socket"
              "dmenu: to run some of the example scripts"
              "zenity: to run some of the example scripts"
              "python: to run some of the example scripts"
              "xclip: for clipboard related keybindings"
              "pygtk: for uzbl-tabbed")
  install=uzbl.install

  cd "$srcdir/$_gitname"
  make clean
  local CFLAGS="--param=ssp-buffer-size=4"
  make DESTDIR="$pkgdir" PREFIX=/usr install-uzbl-core
  # remove conflicting libraries
  rm -rf "$pkgdir/usr/lib"
}

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"
           "python-six")
  provides=("uzbl-browser")
  conflicts=("uzbl-browser")
  install -d $pkgdir/usr/share/appdata
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir" PREFIX=/usr install-uzbl-browser
  # avoid conflicts
  rm -f $pkgdir/usr/bin/uzbl-core \
        $pkgdir/usr/share/uzbl/docs/* \
        $pkgdir/usr/bin/uzbl-tabbed \
        $pkgdir/usr/share/man/man1/uzbl-core.1
}

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