# Contributor: Leo # Contributor: Sören Tempel # Maintainer: pkgname=evince pkgver=3.32.0 pkgrel=0 pkgdesc="simple document viewer for GTK+" url="http://projects.gnome.org/evince/" arch="all" license="GPL-2.0-or-later" depends="adwaita-icon-theme" depends_dev="gtk+3.0-dev poppler-dev libsm-dev libevent-dev libxrandr-dev libx11-dev libxcursor-dev libxcomposite-dev libxi-dev util-linux-dev tiff-dev gobject-introspection-dev libxml2-dev py-six libspectre-dev" makedepends="$depends_dev intltool itstool gnome-doc-utils adwaita-icon-theme-dev gnome-common automake autoconf gtk-doc yelp-tools appstream-glib-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz CVE-2019-11459.patch " builddir="${srcdir}/${pkgname}-${pkgver}" # secfixes: # 3.32.0-r1: # - CVE-2019-11459 # 3.24.0-r2: # - CVE-2017-1000083 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --disable-nautilus \ --without-keyring \ --without-gspell \ --enable-introspection \ --disable-static \ --enable-comics make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } check() { cd "$builddir" make check } libs() { default_libs mv "$pkgdir"/usr/lib/* "$subpkgdir"/usr/lib/ } doc() { default_doc if [ -d "$pkgdir"/usr/share/help ]; then mv "$pkgdir"/usr/share/help "$subpkgdir"/usr/share/ fi } sha512sums="565298a200d9ae2f6b4cb53c3cba0d0d0e4cfbef60e4145bfb9c82a5682947ceb2371e52c27179cd69a238cd387bcfd744d3c55df814b6347f07781aec3ea658 evince-3.32.0.tar.xz ebb8e2e0b2754d4634c99fda7669171e97b583dfbcd383682b70eb36ce816f1bcf1c2cb81b4ffbfac86db891d9f63bd0c2d90ff9ca3838c64a258b6a0002f7c4 CVE-2019-11459.patch"