diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-09 14:19:29 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-09 14:19:29 -0300 |
commit | e67aab7c18162c419c38444a2d5115304ea3d877 (patch) | |
tree | 2aa77eee59ce8102d721807600c99500bf5bf682 /pcr | |
parent | 6d5e29101382248ffd9e0192a4bc1ac57278f2db (diff) | |
download | abslibre-e67aab7c18162c419c38444a2d5115304ea3d877.tar.gz abslibre-e67aab7c18162c419c38444a2d5115304ea3d877.tar.bz2 abslibre-e67aab7c18162c419c38444a2d5115304ea3d877.zip |
qutebrowser: add new package to [pcr]
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/qutebrowser/PKGBUILD | 63 | ||||
-rw-r--r-- | pcr/qutebrowser/qutebrowser.install | 12 |
2 files changed, 75 insertions, 0 deletions
diff --git a/pcr/qutebrowser/PKGBUILD b/pcr/qutebrowser/PKGBUILD new file mode 100644 index 000000000..5cf063097 --- /dev/null +++ b/pcr/qutebrowser/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer (Arch): Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org> + +# vim: set ts=2 sw=2 et ft=sh: + +pkgname=qutebrowser +pkgver=0.4.1 +pkgrel=2 +pkgdesc="A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit" +arch=(any) +url="http://www.qutebrowser.org/" +license=('GPL') +depends=('python>=3.4' 'python-setuptools' 'python-pyqt5>=5.2' 'qt5-base>=5.2' + 'qt5-webkit>=5.2' 'libxkbcommon-x11' 'python-pypeg2' 'python-jinja' + 'python-pygments' 'xdg-utils' 'desktop-file-utils' 'python-yaml') +makedepends=('asciidoc') +optdepends=( + 'python-colorlog: colored logging output' + 'gst-libav: media playback' + 'gst-plugins-base: media playback' + 'gst-plugins-good: media playback' + 'gst-plugins-bad: media playback' + 'gst-plugins-ugly: media playback' +) +options=(!emptydirs) +source=("http://qutebrowser.org/releases/v$pkgver/qutebrowser-${pkgver}.tar.gz" + 'qutebrowser.install') +sha256sums=('6e1022e4b349fd09bd8efa643d2411badb8305fee911d266db5dce66290a3ed7' + '4a88871e91f894890ce96feb620e4174c686db12e4fa91b5a7306454dc96bf67') +install=qutebrowser.install + +build() { + cd "$srcdir/qutebrowser-$pkgver" + a2x -f manpage doc/qutebrowser.1.asciidoc + python setup.py build +} + +package() { + cd "$srcdir/qutebrowser-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 doc/qutebrowser.1 "$pkgdir/usr/share/man/man1/qutebrowser.1" + install -Dm644 qutebrowser.desktop \ + "$pkgdir/usr/share/applications/qutebrowser.desktop" + install -Dm644 icons/qutebrowser-16x16.png \ + "$pkgdir/usr/share/icons/hicolor/16x16/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-24x24.png \ + "$pkgdir/usr/share/icons/hicolor/24x24/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-32x32.png \ + "$pkgdir/usr/share/icons/hicolor/32x32/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-48x48.png \ + "$pkgdir/usr/share/icons/hicolor/48x48/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-64x64.png \ + "$pkgdir/usr/share/icons/hicolor/64x64/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-96x96.png \ + "$pkgdir/usr/share/icons/hicolor/96x96/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-128x128.png \ + "$pkgdir/usr/share/icons/hicolor/128x128/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-256x256.png \ + "$pkgdir/usr/share/icons/hicolor/256x256/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser-512x512.png \ + "$pkgdir/usr/share/icons/hicolor/512x512/apps/qutebrowser.png" + install -Dm644 icons/qutebrowser.svg \ + "$pkgdir/usr/share/icons/hicolor/scalable/apps/qutebrowser.svg" +} diff --git a/pcr/qutebrowser/qutebrowser.install b/pcr/qutebrowser/qutebrowser.install new file mode 100644 index 000000000..5c501dc49 --- /dev/null +++ b/pcr/qutebrowser/qutebrowser.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |