# Contributor: Leo # Contributor: Sören Tempel # Maintainer: team/gnome pkgname=evince pkgver=44.3 pkgrel=0 pkgdesc="Simple document viewer for GTK+" url="https://wiki.gnome.org/Apps/Evince" # s390x blocked by mozjs91 -> nautilus-dev arch="all !s390x" license="GPL-2.0-or-later" depends=" adwaita-icon-theme gsettings-desktop-schemas " depends_dev=" gobject-introspection-dev gtk+3.0-dev libspectre-dev libxml2-dev poppler-dev tiff-dev " makedepends=" $depends_dev adwaita-icon-theme-dev cairo-dev dbus-dev desktop-file-utils djvulibre-dev gdk-pixbuf-dev glib-dev gnome-desktop-dev gspell-dev gst-plugins-base-dev gstreamer-dev itstool libarchive-dev libgxps-dev libhandy1-dev libsecret-dev meson " subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" source="https://download.gnome.org/sources/evince/${pkgver%.*}/evince-$pkgver.tar.xz" # secfixes: # 3.32.0-r1: # - CVE-2019-11459 # 3.24.0-r2: # - CVE-2017-1000083 build() { abuild-meson \ -Db_lto=true \ -Dsystemduserunitdir=no \ -Dgtk_doc=false \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } nautilus() { pkgdesc="$pkgname (Nautilus extension)" install_if="$pkgname=$pkgver-r$pkgrel nautilus" amove usr/lib/nautilus } libs() { default_libs mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/ } doc() { default_doc if [ -d "$pkgdir"/usr/share/help ]; then amove usr/share/help fi } sha512sums=" 7812e588fcce8bfd30c187cffeb02295def043bd51db4eb6d5d226a01eba6e45a07382fb6b7779a485acd922e2f4c3b0fffc63f40d2a8c2f4e6c5052e3761ff1 evince-44.3.tar.xz "