1 # Contributor: Alexander Fehr <pizzapunk gmail com>
2 # Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
8 pkgdesc="A document viewer, built without GConf and GNOME keyring support"
10 url="http://projects.gnome.org/evince/"
12 depends=('dconf' 'gtk3' 'libsm' 'poppler-glib' 'hicolor-icon-theme'
14 makedepends=('intltool')
15 optdepends=('libspectre: PostScript support'
16 'djvulibre: DJVU support'
17 'texlive-bin: DVI support'
18 'libgxps-git: XPS support')
19 provides=("$_pkgalias")
20 conflicts=("$_pkgalias")
21 install=$_pkgalias.install
22 source=("http://ftp.gnome.org/pub/GNOME/sources/evince/3.2/$_pkgalias-$pkgver.tar.xz")
23 md5sums=('8c01b6741709b8e32b800b71820648ac')
26 _tmpfile="$pkgdir/.tmp"
30 pkg-config $1 && echo "$3" >> "$_tmpfile" || _ods=("${_ods[@]}" "$2")
35 [ -e "$1" ] && echo "$3" >> "$_tmpfile" || _ods=("${_ods[@]}" "$2")
40 for _idx in ${!optdepends[@]}
42 if [[ "${optdepends[$_idx]}" =~ ^$1:* ]]
44 unset optdepends[$_idx]
52 cd "$srcdir/$_pkgalias-$pkgver"
54 sed -i 's/gnome-icon-theme//' configure.ac configure
55 sed -i '/NoDisplay/d' ./data/evince.desktop.in.in
58 add_ods_pc libspectre '--disable-ps' libspectre
59 add_ods_pc ddjvuapi '--disable-djvu' djvulibre
60 add_ods_file '/usr/lib/libkpathsea.a' '--disable-dvi' texlive-bin
61 add_ods_pc libgxps '--disable-xps' libgxps-git
63 autoreconf --force --install
66 --libexecdir=/usr/lib/$_pkgalias \
68 --localstatedir=/var \
69 --disable-maintainer-mode \
70 --disable-schemas-compile \
74 --disable-introspection \
77 --disable-scrollkeeper \
81 --with-smclient=xsmp "${_ods[@]}"
88 cd $srcdir/$_pkgalias-$pkgver
89 make DESTDIR=$pkgdir install
93 if [ 1 -gt 0 ]; then depends=("${depends[@]}" "$_ch"); fi
94 unset_optdepend "$_ch"
96 optdepends=("${optdepends[@]}")