#Maintainer: George Vlahavas pkgname=evince pkgver=2.30.1 pkgrel=2gv source=("http://ftp.gnome.org/pub/GNOME/sources/evince/2.30/evince-2.30.1.tar.bz2" "evince-2.26.0-nohelp.patch" "fix_creating_last_settings.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 } 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/fix_creating_last_settings.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 --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} }