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

pkgname=marco
pkgver=1.16.0
_mainver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1gv
source=("http://pub.mate-desktop.org/releases/${_mainver}/marco-${pkgver}.tar.xz" "salix.patch")
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------------------------------------------------------|
"$pkgname (A lightweight GTK based Window Manager)"
"Marco is a small window manager, using gtk to do everything. As the"
"author says, Marco is a Boring window manager for the adult in you."
"Many window managers are like Marshmallow Froot Loops; Marco is like"
"Cheerios."
)


build() {
	cd $startdir/src/marco-$pkgver

	patch -p1 < $startdir/src/salix.patch || exit 1

	./configure \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-schemas-compile \
		--enable-compositor \
		--disable-static \
		--with-gtk=2.0 \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# remove help files we don't need
	rm -rf $startdir/pkg/usr/share/help
} 
