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

# source: james
TARBALL=xinput_calibrator-master.tar.gz
MD5SUM=e23cb4ff30a36a26ae49eb86b96ee749	
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='libX11' # 
SLACKDESC="xinput_calibrator: xinput_calibrator $PKGVER (Touchscreen calibration program) 
xinput_calibrator:  
xinput_calibrator: xinput_calibration is a generic touchscreen calibration 
xinput_calibrator: program suitable for many different touchscreens and 
xinput_calibrator: drivers.  
xinput_calibrator: 
xinput_calibrator: 
xinput_calibrator: 
xinput_calibrator: 
xinput_calibrator: 
xinput_calibrator: http://www.freedesktop.org/wiki/Software/xinput_calibrator/ 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/xinput*
	
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" &&
	./autogen.sh $CONFFLAGS --with-gui=x11 &&
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc &&
	
	# add desktop file
	mkdir -p /usr/share/applications &&
	install -m644 /tmp/pkg/xinput_calibrator.desktop /usr/share/applications
}
 
