### this file is sourced not run
PKGVER=3.5.2
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5
TARBALL=openbox-$PKGVER.tar.gz
MD5SUM=93df606606053b7e8578a5c116afb8ec 
SRC_URL=http://openbox.org/dist/openbox/$TARBALL
BUNDLE=

SLACKREQ='gtk2 imlib2'
SLACKDESC="openbox: openbox $PKGVER (Openbox window manager)  
openbox:  
openbox: Openbox is a highly configurable desktop window manager with 
openbox: extensive standards support. It allows you to control almost every 
openbox: aspect of how you interact with your desktop.  
openbox: 
openbox: 
openbox: 
openbox: 
openbox: 
openbox:
"

### default pkg_download
### default pkg_prepare
### default pkg_packages
### build
pkg_build() {
	cd /tmp/openbox* &&
	sed -i -e '/#include <librsvg\/rsvg.h>/ a#include <cairo.h>' obrender/image.c &&
	CONFFLAGS="$CONFFLAGS \
	--docdir=/usr/share/doc/openbox-3.5.2 --disable-static" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# Fatdog rc.xml and extra
	install -m644 /tmp/pkg/openbox-rc.xml /etc/xdg/openbox/rc.xml &&
	cp -a /tmp/pkg/openbox_extra /usr/share/applications
}


