#Maintainer: George Vlahavas pkgname=evince pkgver=2.32.0 pkgrel=3gv source=("http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/evince-2.32.0.tar.bz2" "evince-2.26.0-nohelp.patch" "update_to_poppler_api.patch") url=http://projects.gnome.org/evince/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") options=('noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x /usr/bin/scrollkeeper-update ]; then /usr/bin/scrollkeeper-update > /dev/null 2>&1 fi # update icon cache if [ -x /usr/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor > /dev/null 2>&1 fi # compile schemas if [ -x /usr/bin/glib-compile-schemas ]; then /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "evince (simply a document viewer)" "Evince is a document viewer for multiple document formats. It" "currently supports pdf, postscript, djvu, tiff and dvi. The goal of" "evince is to replace the multiple document viewers that exist on the" "GNOME Desktop with a single simple application." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/evince-2.26.0-nohelp.patch || exit 1 patch -p1 < $startdir/src/update_to_poppler_api.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --disable-scrollkeeper --enable-djvu --enable-pixbuf --enable-impress --disable-nautilus --enable-comics --disable-schemas-install --disable-schemas-compile --without-gconf --without-keyring --build=$arch-slackware-linux make || return 1 make install DESTDIR=$startdir/pkg sed -i "/NoDisplay/d" $startdir/pkg/usr/share/applications/evince.desktop rm -rf $startdir/pkg/usr/share/{omf,gnome,gtk-doc} }