#Maintainer: Dimitris Tzemos (djemos@slackel.gr)
#Former Maintainer: Maximus (maximus[at]gmail[dot]com)

pkgname=tint2
pkgver=0.11
pkgrel=2dj
source=("get-svn-src.sh" "http://tint2.googlecode.com/files/tint2-$pkgver.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://code.google.com/p/tint2


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"tint2 - an ultralightweight panel for openbox"
"Tint2 (formerly ttm) is a simple panel/taskbar intentionally made"  
"for openbox3, but should also work with other window managers. The"
"goal is to keep a clean and unintrusive look with code lightweight"
"and compliance with freedesktop specifications. Features include:"
"*panel with taskbar, systray and clock *color/transparency on font,"
"icon, border and background *pager like capability : send task from"
"one workspace to another, switch workspace *multi-monitor capability"
"*customize mouse event *window manager's menu"
)

build() {
		
	cd $SRC/$pkgname-$pkgver
	
	mkdir build
	cd build
	cmake \
	   -DCMAKE_INSTALL_PREFIX=/usr \
	    -DENABLE_EXAMPLES:BOOL=ON \
	    -DENABLE_TINT2CONF:BOOL=ON \
	    -DENABLE_BATTERY:BOOL=ON \
	    -DCMAKE_BUILD_TYPE=Release .. || return 1

	make -j $numjobs || exit 1
	make install DESTDIR=$PKG || exit 1
	
}
