# Template file for 'antimicrox'
pkgname=antimicrox
version=3.1.3
revision=1
build_style=cmake
hostmakedepends="pkg-config extra-cmake-modules itstool gettext qt5-qmake
 qt5-host-tools"
makedepends="qt5-tools-devel SDL2-devel libXi-devel libXtst-devel libX11-devel
 qt5-x11extras-devel"
short_desc="Map keyboard buttons and mouse controls to a gamepad"
maintainer="fosslinux <fosslinux@aussies.space>"
license="GPL-3.0-or-later"
homepage="https://github.com/AntiMicroX/antimicrox"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd

libantimicrox_package() {
	short_desc+=" - libraries"
	pkg_install() {
		vmove usr/lib/*.so.*
	}
}

libantimicrox-devel_package() {
	depends="libantimicrox>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/lib/*.so
		vmove usr/include
	}
}

antimicro_package() {
	build_style=meta
	depends="${sourcepkg}"
	short_desc+=" - transitional dummy package"
}
