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

pkgname=mate-applet-lockkeys
pkgver=0.3.2
pkgrel=1gv
source=("http://www.zavedil.com/wp-content/uploads/2017/06/mate-applet-lockkeys-0.3.2.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls" "bugs")
url=http://www.zavedil.com/mate-lock-keys-applet/

doinst() {
# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mate-applet-lockkeys (shows the state of lock keys in MATE)"
"mate-applet-lockkeys is a MATE panel applet that shows which of the"
"apsLock, NumLock and ScrollLock keys are on and which are off."
)


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

	# this shouldn't be in the package! There is no
	# --disable-schemas-compile option unfortunately
	rm -f $startdir/pkg/usr/share/glib-2.0/schemas/gschemas.compiled
}