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

# Modified by Didier Spaier <didier~at~slint~dot~fr> for Slint

pkgname=mate-applets
pkgver=1.24.0
_majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1slint
source=("http://pub.mate-desktop.org/releases/${_majorver}/mate-applets-${pkgver}.tar.xz")
docs=("readme" "install" "copying*" "changelog" "authors" "news" "todo" "hacking" "maintainers")
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-applets (MATE Panel Applets)"
"MATE Applets are small applications which generally run in the"
"background and display their output to the MATE panel."
)

# We don't include cpufreq because that would need to build
# libcpupower.so from the source of the running kernel, thus possibly
# to upgrade this package on every kernel upgrade - Didier

build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--localstatedir=/var \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--sysconfdir=/etc \
		--disable-schemas-compile \
		--disable-static \
		--enable-stickynotes \
		--build=$arch-slackware-linux \
		--disable-static \
		--disable-cpufreq

	make || return 1
	make install DESTDIR=$startdir/pkg
	
	rm -rf $startdir/pkg/usr/share/gtk-doc
} 
