#Packager: George Vlahavas pkgname=mate-document-viewer pkgver=1.8.0 pkgrel=1gv source=("http://pub.mate-desktop.org/releases/1.8/atril-1.8.0.tar.xz" "help.patch" "org.mate.lockdown.gschema.xml") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") options=('noautodotnew') doinst() { # 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------------------------------------------------------| "mate-document-viewer (simply a document viewer)" "Atril is a simple multi-page document viewer. It can display and" "print PostScript (PS), Encapsulated PostScript (EPS), DJVU and" "Portable Document Format (PDF) files. When supported by the document," "it also allows searching for text, copying text to the clipboard," "hypertext navigation, and table-of-contents bookmarks." ) build() { cd $startdir/src/atril-$pkgver patch -p1 < $startdir/src/help.patch || exit 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-schemas-compile \ --disable-static \ --without-keyring \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg # remove unnecessary help files rm -rf $startdir/pkg/usr/share/help rm -rf $startdir/pkg/usr/share/gtk-doc # include schema from mate-desktop package (otherwise atril won't # open pdf files. cp $startdir/src/org.mate.lockdown.gschema.xml $startdir/pkg/usr/share/glib-2.0/schemas/ }