diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/uzbl | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/uzbl')
-rw-r--r-- | community/uzbl/PKGBUILD | 67 | ||||
-rw-r--r-- | community/uzbl/uzbl.install | 17 |
2 files changed, 84 insertions, 0 deletions
diff --git a/community/uzbl/PKGBUILD b/community/uzbl/PKGBUILD new file mode 100644 index 000000000..9ac9af3be --- /dev/null +++ b/community/uzbl/PKGBUILD @@ -0,0 +1,67 @@ +# $Id: PKGBUILD 80256 2012-11-18 14:26:45Z lcarlier $ +# 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=2 +arch=('i686' 'x86_64') +url="http://www.uzbl.org" +license=('GPL3') +makedepends=('pkgconfig' 'libwebkit>=1.3.13') +source=(uzbl-$pkgver.tar.gz::https://github.com/Dieterbe/uzbl/tarball/$pkgver) +md5sums=('4c58653bddbcf1429f7275bbb7c664a9') + +build() { + cd "$srcdir"/Dieterbe-uzbl-* + + # 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=('libwebkit>=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"/Dieterbe-uzbl-* + + 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"/Dieterbe-uzbl-* + + 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"/Dieterbe-uzbl-* + + make DESTDIR="$pkgdir" PREFIX=/usr install-uzbl-tabbed +} + diff --git a/community/uzbl/uzbl.install b/community/uzbl/uzbl.install new file mode 100644 index 000000000..500b114e7 --- /dev/null +++ b/community/uzbl/uzbl.install @@ -0,0 +1,17 @@ +post_install() { + /bin/true +} + +post_upgrade() { + echo "Some incompatibily are introduced, please refer to http://www.uzbl.org/news.php?id=38" +} + +pre_remove() { + /bin/true +} + +post_remove() { + /bin/true +} + +# vim:set ts=2 sw=2 et: |