diff options
Diffstat (limited to 'community-testing/zathura')
-rw-r--r-- | community-testing/zathura/PKGBUILD | 32 | ||||
-rw-r--r-- | community-testing/zathura/bash-completion | 29 | ||||
-rw-r--r-- | community-testing/zathura/zathura.install | 13 |
3 files changed, 74 insertions, 0 deletions
diff --git a/community-testing/zathura/PKGBUILD b/community-testing/zathura/PKGBUILD new file mode 100644 index 000000000..cd7da39a5 --- /dev/null +++ b/community-testing/zathura/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 75777 2012-08-31 00:57:27Z dwallace $ +# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: ML <neldoreth> + +pkgname=zathura +pkgver=0.2.1 +pkgrel=1 +pkgdesc="a document viewer" +arch=('i686' 'x86_64') +url="http://pwmt.org/projects/zathura/" +license=('custom') +depends=('girara-gtk2' 'cairo' 'sqlite') +makedepends=('python2-docutils') +optdepends=('zathura-djvu' 'zathura-pdf-poppler' 'zathura-ps') +install=zathura.install +source=(http://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.gz + bash-completion) +md5sums=('2b606a5db61c80b0f1208e9f1df468c2' + 'cac20c37f0e77ba62a8138788f4ccabb') + +build() { + cd $srcdir/zathura-$pkgver + make ZATHURA_GTK_VERSION=2 +} + +package() { + cd $srcdir/zathura-$pkgver + make install DESTDIR=$pkgdir ZATHURA_GTK_VERSION=2 + install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm0644 $srcdir/bash-completion $pkgdir/usr/share/bash-completion/completions/zathura +} diff --git a/community-testing/zathura/bash-completion b/community-testing/zathura/bash-completion new file mode 100644 index 000000000..41c3825b6 --- /dev/null +++ b/community-testing/zathura/bash-completion @@ -0,0 +1,29 @@ +_zathura() { + _init_completion || return + + EXTENTIONS='' + for PLUGIN in /usr/lib/zathura/*.so; do + case ${PLUGIN##*/} in + pdf.so) + EXTENTIONS="$EXTENTIONS|pdf" + ;; + ps.so) + EXTENTIONS="$EXTENTIONS|ps|eps|epsi|epsf" + ;; + djvu.so) + EXTENTIONS="$EXTENTIONS|djvu|djv" + ;; + epub.so) + EXTENTIONS="$EXTENTIONS|epub" + ;; + cb.so) + EXTENTIONS="$EXTENTIONS|cb7|cbr|cbz|cbt|rar|zip|7z|tar" + ;; + *) + ;; + esac + done + + _filedir "${EXTENTIONS#|}" +} && +complete -F _zathura zathura diff --git a/community-testing/zathura/zathura.install b/community-testing/zathura/zathura.install new file mode 100644 index 000000000..f450cf9b8 --- /dev/null +++ b/community-testing/zathura/zathura.install @@ -0,0 +1,13 @@ +post_install() { + which gtk-update-icon-cache >/dev/null && \ + [ -d usr/share/icons/hicolor ] && \ + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |