#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=engrampa
pkgver=1.26.0
_majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1gv
source=("http://pub.mate-desktop.org/releases/${_majorver}/engrampa-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
options=('noautodotnew')

doinst() {
if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi

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------------------------------------------------------|
"engrampa (an archive manager for MATE)"
"MATE File Archiver (Engrampa) is an archive manager for the MATE"
"desktop envirnment."
"With Engrampa you can:"
""
"    * Create and modify archives."
"    * View the content of an archive."
"    * View a file contained in the archive."
"    * Extract files from the archive."
)


build() {
	cd $startdir/src/engrampa-$pkgver

	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-packagekit \
		--disable-static \
		--build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg
}