[arch-commits] Commit in zathura/repos (3 files)
Johannes Löthberg
demize at archlinux.org
Sun May 13 10:30:24 UTC 2018
Date: Sunday, May 13, 2018 @ 10:30:23
Author: demize
Revision: 321600
archrelease: copy trunk to community-testing-x86_64
Added:
zathura/repos/community-testing-x86_64/
zathura/repos/community-testing-x86_64/PKGBUILD
(from rev 321599, zathura/trunk/PKGBUILD)
zathura/repos/community-testing-x86_64/bash-completion
(from rev 321599, zathura/trunk/bash-completion)
-----------------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
bash-completion | 29 +++++++++++++++++++++++++++++
2 files changed, 73 insertions(+)
Copied: zathura/repos/community-testing-x86_64/PKGBUILD (from rev 321599, zathura/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-05-13 10:30:23 UTC (rev 321600)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: ML <neldoreth>
+
+pkgname=zathura
+pkgver=0.3.9
+pkgrel=4
+
+pkgdesc="Minimalistic document viewer"
+url="http://pwmt.org/projects/zathura/"
+arch=('x86_64')
+license=('custom')
+
+makedepends=('python-sphinx' 'texlive-bin' 'meson' 'ninja')
+depends=('girara>=0.2.7' 'sqlite' 'desktop-file-utils' 'file')
+optdepends=('zathura-djvu: DjVu support'
+ 'zathura-pdf-poppler: PDF support using Poppler'
+ 'zathura-pdf-mupdf: PDF support using MuPDF'
+ 'zathura-ps: PostScript support'
+ 'zathura-cb: Comic book support')
+
+source=(https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.xz
+ bash-completion)
+
+sha1sums=('23fd07120031f64a52c24eb90b6e0de9397ba011'
+ '94a8236c483626a7f3acee053a1ea885aed45a82')
+
+build() {
+ cd zathura-$pkgver
+ arch-meson -Denable-synctex=false build
+
+ cd build
+ ninja
+}
+
+package() {
+ cd zathura-$pkgver/build
+ DESTDIR="$pkgdir" ninja install
+
+ install -D -m664 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm0644 "$srcdir"/bash-completion "$pkgdir"/usr/share/bash-completion/completions/zathura
+}
Copied: zathura/repos/community-testing-x86_64/bash-completion (from rev 321599, zathura/trunk/bash-completion)
===================================================================
--- community-testing-x86_64/bash-completion (rev 0)
+++ community-testing-x86_64/bash-completion 2018-05-13 10:30:23 UTC (rev 321600)
@@ -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
More information about the arch-commits
mailing list