#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=obconf
pkgver=2.0.3
pkgrel=2rl
source=("ftp://harrier.slackbuilds.org/misc/obconf-git_cc7a188076.tar.xz" "obconf_git_preview.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://icculus.org/openbox/index.php/ObConf:About


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Obconf (Openbox preferences manager)"
"ObConf is a preferences manager for the Openbox3 window manager."
)


build() {
	cd $SRC/$pkgname-git_cc7a188076
	
	# Include a patch by Andrew Rowland to fix build errors:
	patch -p1 < $SRC/obconf_git_preview.patch || return 1
	
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	make -j $numjobs || return 1
	make DESTDIR=$PKG install
}