Package Details: evince-light 3.26.0-1

Git Clone URL: https://aur.archlinux.org/evince-light.git (read-only)
Package Base: evince-light
Description: GNOME document viewer, built with minimal dependencies by default but configurable.
Upstream URL: https://wiki.gnome.org/Apps/Evince
Licenses: GPL
Conflicts: evince
Provides: evince
Submitter: ArchangeGabriel
Maintainer: ArchangeGabriel
Last Packager: ArchangeGabriel
Votes: 17
Popularity: 0.227095
First Submitted: 2016-12-22 15:48
Last Updated: 2017-09-18 16:36

Required by (16)

Sources (1)

Latest Comments

ArchangeGabriel commented on 2017-01-03 22:47

@kazuo: Sorry, it literally took me years to notice your comment and take it into account. I’ve updated with your suggestion, excepted that:

– I’ve let PDF enabled as default, like it is now.
– I’ve made tiff, previewer and thumbnailer options too, first one was let alone before because not requiring any dep but that’s no reason (e.g. comics), and regarding the two others I’ve realised they are not useful outside of a gnome environment.
– I’ve added the multimedia option for multimedia support in PDF, which was added upstream in 3.17 but that was ignored by evince in repo until 3.20 and here until now. I definitively admit having missed it in both changelogs. The feature is definitively in POC form, but might still be of interest for some.

kazuo commented on 2015-10-28 23:39

I don't like the idea of having an interactive prompt. What about using variables to control the build options?

Like done in this patch https://gist.github.com/kazuoteramoto/34b40853815398a3bcb6

I did not change the defaults, but I like to ask that at least PDF is included by default, as this can surprise a lot of people (me included) getting a evince that do not support any filetype.

digitalirony commented on 2015-08-17 18:23

Pardon my bash, not my best, but here, this is super easy to accomplish like so:
build()
{
cd ${srcdir}/${pkgbase}-${pkgver}

# --enable-pdf if building with poppler-glib
# --enable-ps if building with libspectre
# --enable-djvu if building with djvulibre
# --enable-dvi if building with texlive-bin
# --enable-xps if building with libgxps
# --enable-comics if you want comics support

echo "Would you like to enable pdf?"
read pdf
if [ pdf -eq "y" ]
then
./configure \
--sysconfdir=/etc \
--prefix=/usr \
--libexecdir=/usr/lib/${pkgbase} \
--localstatedir=/var \
--with-platform=gnome \
--disable-debug \
--disable-maintainer-mode \
--disable-schemas-compile \
--enable-viewer \
--enable-previewer \
--enable-thumbnailer \
--enable-pdf \
--disable-ps \
--disable-djvu \
--disable-dvi \
--disable-xps \
--disable-comics \
--enable-t1lib \
--enable-tiff \
--disable-nautilus \
--disable-browser-plugin \
--disable-gtk-doc \
--disable-introspection \
--enable-dbus \
--without-keyring \
--with-gtk-unix-print \
--disable-libgnome-desktop
make
fi
if [ $pdf -eq "n" ]
then
./configure \
--sysconfdir=/etc \
--prefix=/usr \
--libexecdir=/usr/lib/${pkgbase} \
--localstatedir=/var \
--with-platform=gnome \
--disable-debug \
--disable-maintainer-mode \
--disable-schemas-compile \
--enable-viewer \
--enable-previewer \
--enable-thumbnailer \
--disable-pdf \
--disable-ps \
--disable-djvu \
--disable-dvi \
--disable-xps \
--disable-comics \
--enable-t1lib \
--enable-tiff \
--disable-nautilus \
--disable-browser-plugin \
--disable-gtk-doc \
--disable-introspection \
--enable-dbus \
--without-keyring \
--with-gtk-unix-print \
--disable-libgnome-desktop
make

fi
}


There are likely much easier ways to do this, but yeah, it appears that you can just run bash inside the pkgbuild really easy. You could likely even write a small shell script and then have PKGBUILD run that externally instead of inline in your PKGBUILD.

ArchangeGabriel commented on 2015-07-06 11:17

You must edit PKGBUILD to enable PDF support. If you know an easy way to write a process of Q/A to ask what the user want and add it, I’m taking it.

dummyuploader commented on 2015-07-04 11:55

can't open pdf, giving eror message

File type PDF document (application/pdf) is not supported