1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=(evince evince-lib-docs)
8 pkgdesc="Document viewer (PDF, PostScript, XPS, djvu, dvi, tiff, cbr, cbz, cb7, cbt)"
9 url="https://wiki.gnome.org/Apps/Evince"
16 gsettings-desktop-schemas
39 _commit=e111836bcd5925e75945cb2bfd5e7cac7b49b9b1 # tags/44.1^0
40 source=("git+https://gitlab.gnome.org/GNOME/evince.git#commit=$_commit")
45 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
57 arch-meson evince build "${meson_options[@]}"
58 meson compile -C build
62 meson test -C build --print-errorlogs
66 local p="$1" f d; shift
68 d="$srcdir/$p/${f#$pkgdir/}"
69 mkdir -p "$(dirname "$d")"
71 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
76 provides=(libev{document,view}3.so)
77 optdepends=('texlive-bin: DVI support')
80 meson install -C build --destdir "$pkgdir"
82 _pick lib-docs "$pkgdir"/usr/share/doc/lib*
85 package_evince-lib-docs() {
86 pkgdesc+=" (library API documentation)"
89 mv lib-docs/* "$pkgdir"
92 # vim:set sw=2 sts=-1 et: