#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>
# Modified for Slint by Didier Spaier <didier~at~slint~dot~fr> 

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

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-system-monitor (Process viewer and system resource monitor)"
"This package allows you to graphically view and manipulate the running"
"processes on your system. It also provides an overview of available"
"resources such as CPU and memory."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	patch --verbose -p1 -R <$startdir/switch-to-use-gettext.diff
	./autogen.sh
	./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
} 
