# Contributor: Sören Tempel # Contributor: William Pitcock # Maintainer: William Pitcock pkgname=evince pkgver=3.25.4 pkgrel=0 pkgdesc="simple document viewer for GTK+" url="http://projects.gnome.org/evince/" arch="all" license="GPL" 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" makedepends="$depends_dev intltool itstool gnome-doc-utils adwaita-icon-theme-dev gnome-common automake autoconf gtk-doc yelp-tools" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz evince-lzmasdk-s390x.patch " builddir="${srcdir}/${pkgname}-${pkgver}" # secfixes: # 3.24.0-r2: # - CVE-2017-1000083 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --disable-nautilus \ --without-keyring \ --enable-introspection \ --disable-static \ --enable-comics make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } 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="d0d72eeeb935c36ce9185c2ecff763c20926ce12b10565108ff927bd973758754a48ceda99ee1d4e6f27d5abd42e7224a3cce3721263c35e2fc135ea4b026fc9 evince-3.25.4.tar.xz 6bb93159e27c609a353b98855c6602b1b92b7445dbb242863f8120c5ca84a05a019e0e5f1b8d4122066ef33e3433fa2a5278403b420f312d66934631d910faa6 evince-lzmasdk-s390x.patch"