# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=razergenie
pkgver=1.1.0
pkgrel=1
pkgdesc="Configure and control your Razer devices"
url="https://github.com/z3ntu/RazerGenie"
arch="all"
license="GPL-3.0-or-later"
depends="openrazer"
makedepends="
	libopenrazer-dev
	meson
	qt5-qtbase-dev
	qt5-qttools-dev
	"
source="https://github.com/z3ntu/RazerGenie/releases/download/v$pkgver/RazerGenie-$pkgver.tar.xz"
builddir="$srcdir/RazerGenie-$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
3deaffedeccbc9bb086cb7d3ff531c8a546ae1b973bc7285a1071be048ec0d7ab8c82738ffcd0cb1eb925607ed015a83ffecde524ffeb82b0c60d8d1f520718c  RazerGenie-1.1.0.tar.xz
"
