app=evince
version=3.35.92
build=1sml
homepage="http://projects.gnome.org/evince/"
download="https://download.gnome.org/sources/evince/3.35/evince-3.35.92.tar.xz"
desc="Gtk-based document viewer with support for multiple formats"
requires="libarchive python3 gtk3 libsecret gspell gst-plugins-base"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --libdir=/lib \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-nautilus \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
22e34ed5f739e22de647457676ab192158c08d81fb46d59873bbe2da57c7778244a89cafeeaa6f4350606e81210d6f507f1372bcc99b4a9e3cb59c504edf1153  evince-3.35.92.tar.lz
"
