#Maintainer: Dimitris Tzemos <dijemos@gmail.com>

pkgname=fbxkb
pkgver=0.6
pkgrel=3dj
source=("http://download.sourceforge.net/fbxkb/${pkgname}-${pkgver}.tgz" "fbxkb.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "credits")
url="http://fbxkb.sourceforge.net/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"fbxkb (Xorg Keyboard indicator and switcher)"
"fbxkb is NETWM compliant keyboard indicator and switcher. It shows a"
"flag of current keyboard in a systray area and allows you to switch to"
"another one."
)


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

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

	sed -i "s/-O2/$CFLAGS/" Makefile.common
	
	./configure --prefix=/usr
	make -j $numjobs || return 1
	make install PREFIX=$startdir/pkg/usr
} 
