# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=spnavcfg
pkgver=1.1
pkgrel=0
pkgdesc="spacenav interactive configuration GUI"
url="https://spacenav.sourceforge.net/"
arch="all"
license="GPL-3.0-or-later"
makedepends="qt5-qtbase-dev libspnav-dev"
options="!check" # no checks
source="$pkgname-$pkgver.tar.gz::https://github.com/FreeSpacenav/spnavcfg/archive/refs/tags/v$pkgver.tar.gz
	makefile.patch
	"

build() {
	# not automake
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
00166b2cf507a449df4cdf2e7865ec002a3b8d193e961c87569b944e1a81bbc4104dd16335c4bf7628a2477cbec2ab07e4f88e6e60792e0156002b52152d3fb7  spnavcfg-1.1.tar.gz
8391b27c94e83157294d84b32164e2fb82a7998d2df4c07da478eb7294b7c2b49b2b371dbed7bbd2e0ac3264973a97e7a455cf227bb2ac196b7232fe816cd829  makefile.patch
"
