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"
12 depends=(gtk3 libgxps libspectre gsfonts poppler-glib djvulibre dconf libsecret libsynctex
13 gsettings-desktop-schemas gnome-desktop libarchive gst-plugins-base-libs gspell libhandy
15 makedepends=(libnautilus-extension texlive-bin gobject-introspection gi-docgen git meson
16 appstream-glib yelp-tools)
18 _commit=0ff17893679b05e7635e76e5c77384995b802f81 # tags/42.3^0
19 source=("git+https://gitlab.gnome.org/GNOME/evince.git#commit=$_commit")
24 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
32 arch-meson evince build -D ps=enabled
33 meson compile -C build
37 meson test -C build --print-errorlogs
41 local p="$1" f d; shift
43 d="$srcdir/$p/${f#$pkgdir/}"
44 mkdir -p "$(dirname "$d")"
46 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
51 provides=(libev{document,view}3.so)
52 optdepends=('texlive-bin: DVI support')
55 meson install -C build --destdir "$pkgdir"
57 _pick lib-docs "$pkgdir"/usr/share/doc/lib*
60 package_evince-lib-docs() {
61 pkgdesc+=" (library API documentation)"
64 mv lib-docs/* "$pkgdir"