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

pkgname=mate-sensors-applet
pkgver=1.26.0
_majorver=`echo $pkgver | cut -d'.' -f1,2`
pkgrel=1dj
source=("http://pub.mate-desktop.org/releases/${_majorver}/mate-sensors-applet-${pkgver}.tar.xz")
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-sensors-applet (hardware sensors applet for Mate"
"MATE Sensors Applet is an applet for the MATE Panel to display"
"readings from hardware sensors, including system and CPU temperature,"
"fan speeds, and voltage readings under Linux via the hwmon and i8k"
"kernel modules. It has a highly customizable display and an intuitive"
"user interface."
)


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