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

# source: james

# release tarball
PKGVER=3.1.2
TARBALL=antimicrox-$PKGVER.tar.gz
MD5SUM=105bb8d2f843636c1d704d22273ac589
SRC_URL=https://github.com/AntiMicroX/antimicrox/archive/$PKGVER.tar.gz
BUNDLE=

# git-master tarball
#PKGVER=
#MD5SUM=
#hash=
#hash7=${hash#???????}; hash7=${hash%$hash7}
#TARBALL=
#SRC_URL=

SLACKREQ='qt5-common libSDL2'
SLACKDESC="antimicrox: antimicrox $PKGVER (Map keyboard and mouse to gamepad)
antimicrox: 
antimicrox: antimicrox is a graphical program used to map keyboard keys and mouse 
antimicrox: controls to a gamepad. This program is useful for playing PC games 
antimicrox: using a gamepad that do not have any form of built-in gamepad 
antimicrox: support. However, you can use this program to control any desktop 
antimicrox: application with a gamepad; on Linux, this means that your system has 
antimicrox: to be running an X environment in order to run this program.
antimicrox: antimicrox is a fork of antimicro.
antimicrox: 
antimicrox: https://github.com/AntiMicroX/antimicrox
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	# qt5	
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/$LIBDIR"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include" 

	pkg_build_cmake &&
	pkg_build_slackdesc
}
