#Maintainer: George Vlahavas (vlahavas~AT~gmail~DOT~com, gapan@zenwalk forums) pkgname=evince-thumbnailer pkgver=2.22.2 pkgrel=1 zenver=52 arch=i486 source=(ftp://ftp.gnome.org/pub/gnome/sources/evince/2.22/evince-2.22.2.tar.bz2) docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=www.gnome.org options=('norequiredbuilder' 'keepdepfile') doinst() { # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "evince-thumbnailer - a document thumbnailer for GNOME" "Evince-thumbnailer creates thumbnails for pdf and ps documents for" "the GNOME desktop. This package also includes a nautilus extension for" "dispaying details about your documents from the right click menu" ) build() { cd $startdir/src/evince-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-scrollkeeper --enable-nautilus --enable-pixbuf --enable-impress --disable-schemas-install --enable-pdf --enable-djvu --with-omf-dir=/usr/share/omf --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" make || return 1 make install DESTDIR=$startdir/pkg # Remove files already in evince package rm -rf $startdir/pkg/usr/share/evince rm -rf $startdir/pkg/usr/share/icons rm -rf $startdir/pkg/usr/share/applications rm -rf $startdir/pkg/usr/share/locale rm -rf $startdir/pkg/usr/share/gtk-doc rm -rf $startdir/pkg/usr/share/gnome rm -rf $startdir/pkg/usr/man rm -rf $startdir/pkg/usr/bin/evince # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi }