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

pkgname=mate-calc
pkgver=1.26.0
_mainver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1gv
source=("https://pub.mate-desktop.org/releases/${_mainver}/mate-calc-${pkgver}.tar.xz")
docs=("readme.md" "install" "copying" "changelog" "authors" "news" "todo" "about-nls")

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------------------------------------------------------|
"mate-calc (a calculator for MATE)"
"MATE Calculator is the default calculator for the MATE desktop"
"environment. It started as a fork of gnome-calc, the calculator"
"application that was previously in the OpenWindows Deskset of the"
"Solaris 8 operating system."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-schemas-compile \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
} 
