# Template file for 'sc-controller'
pkgname=sc-controller
version=0.6.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel zlib-devel"
depends="gtk+3 python3-gobject python3-cairo python3-evdev python3-vdf
 python3-libusb1 python3-ioctl-opt gtk-layer-shell"
checkdepends="python3-pytest libXfixes libXext-devel python3-evdev python3-vdf
 python3-libusb1 python3-ioctl-opt"
short_desc="User-mode driver and GTK3 based GUI for Steam Controller"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/C0rn3j/sc-controller"
distfiles="https://github.com/C0rn3j/sc-controller/archive/refs/tags/v$version.tar.gz"
checksum=cda5ab9ec2eb899bd345a77f96800f872f3dbc8730c37dd8514f311743d80b3a


# Workaround: scc/tools.py:find_library searches for binaries in the source root
# and doesn't respect PYTHONPATH. We symlink compiled libs to root for tests.
pre_check() {
	ln -sf $(find build/lib* -name '*.so') .
}
