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

# source: james
TARBALL=fbxkb-0.7-james.tgz
MD5SUM=16c1a71d14fbb4d221a8519f17b8773d
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="fbxkb: fbxkb $PKGVER (Keyboard locale indicator)  
fbxkb:  
fbxkb: fbxkb is a lightweight X keyboard locale indicator. It shows a flag of 
fbxkb: current keyboard locale in a systray area and allows you to switch to 
fbxkb: another one.  
fbxkb: 
fbxkb: http://fbxkb.sourceforge.net/
fbxkb: https://packages.debian.org/sid/fbxkb
fbxkb: 
fbxkb: 
fbxkb: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/fbxkb* &&
	patch -Np1 -i ../pkg/tooltip-middle-button.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/fbxkb* && 
	./configure &&
	make && make install &&
	pkg_build_slackdesc &&
	
	# autostart it
	mkdir -p /etc/xdg/Startup &&
	install -m755 /tmp/pkg/fbxkb /etc/xdg/Startup
}
