# Template file for 'antimicrox'
pkgname=antimicrox
version=3.3.4
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"
changelog="https://raw.githubusercontent.com/AntiMicroX/antimicrox/master/CHANGELOG.md"
distfiles="https://github.com/AntiMicroX/antimicrox/archive/${version}.tar.gz"
checksum=c5e8d7c827f64b0a162133f9cac2ddc8dc0c9243541fae1a8ced5424b4fb7b3c

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" libexecinfo-devel"
	configure_args+=" -DCMAKE_EXE_LINKER_FLAGS=-lexecinfo"
fi

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