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

pkgname=pluma-plugins
pkgver=1.26.0
_mainver=`echo $pkgver | cut -d'.' -f1,2`
pkgrel=1gv
source=("https://pub.mate-desktop.org/releases/${_mainver}/pluma-plugins-${pkgver}.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "about-nls")

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------------------------------------------------------|
"pluma-plugins (plugins for the pluma text editor)"
"This is a set of plugins for pluma, the default text editor of the"
"MATE desktop environment."
)


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