Package Details: evince-light 3.35.1-4

Git Clone URL: https://aur.archlinux.org/evince-light.git (read-only, click to copy)
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: Archange
Maintainer: starlord
Last Packager: starlord
Votes: 21
Popularity: 0.000431
First Submitted: 2016-12-22 15:48
Last Updated: 2019-11-25 13:58

Required by (22)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

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.

Archange 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