diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5d3ff0aa3271 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# 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.1154.g35db169 +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" + 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 + pkgdesc="A complete browser experience based on uzbl-core" + depends=("uzbl-core-next-git=$pkgver" 'desktop-file-utils' \ + 'python' 'python2' 'webkitgtk') + cd "$srcdir/$_gitname" + make DESTDIR="$pkgdir/" PREFIX=/usr install install-uzbl-browser +} + +package_uzbl-tabbed-next-git() { + pkgdesc="Tabbing manager providing multiple uzbl-browser instances in 1 window" + arch=('any') + depends=('python2') + cd "$srcdir/$_gitname" + make DESTDIR="$pkgdir/" PREFIX=/usr install-uzbl-tabbed +} + |