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

pkgname=libmateweather
pkgver=1.24.1
_mainver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1slint
source=("http://pub.mate-desktop.org/releases/${_mainver}/libmateweather-${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
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libmateweather (a library to access weather information)"
"libmateweather is a library to access weather information from online"
"services for numerous locations."
)


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