#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=eom
pkgver=1.26.1
_mainver=`echo $pkgver | cut -d'.' -f1,2`
pkgrel=1dj
source=("https://pub.mate-desktop.org/releases/${_mainver}/eom-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")

doinst() {
# compile schemas
if [ -e usr/share/glib-2.0/schemas ]; then
  if [ -x /usr/bin/glib-compile-schemas ]; then
    /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
  fi
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"eom (Eye of MATE: an image viewing and cataloguing program)"
"This is the Eye of MATE, an image viewer program.  It is meant to be"
"a fast and functional image viewer."
""
"Eye of MATE is a fork of Eye of GNOME."
)
w
build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-schemas-compile \
		--enable-thumbnailer \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
