# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gkraken
pkgver=1.2.0
pkgrel=5
pkgdesc="GUI that allows to control cooling of NZXT Kraken X pumps from Linux"
url="https://gitlab.com/leinardi/gkraken"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 libdazzle libnotify py3-gobject3 py3-rx liquidctl py3-injector
	py3-matplotlib py3-peewee py3-xdg"
makedepends="meson gobject-introspection-dev gtk+3.0-dev"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="https://gitlab.com/leinardi/gkraken/-/archive/$pkgver/gkraken-$pkgver.tar.gz
	60-gkraken.rules
	"

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

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

	mkdir -p "$pkgdir"/usr/lib/udev/rules.d
	install -m644 "$srcdir"/60-gkraken.rules "$pkgdir"/usr/lib/udev/rules.d/60-gkraken.rules
}

sha512sums="
d57d5ac2941e5a693806cfb898b8eec62a3ea31381ad502a2ba1670b0dae403596426af21560519d1b16f30dbce2b7100c48af95f1b25e3e7f63ab870c203a7e  gkraken-1.2.0.tar.gz
25f658d75366300cf72d954024937b251c058fba8de531c3cfcbf0597f8ab1c7822f8e422146284d9f79c5f7e94cd5f476a5161389f828b112f8847cd73295a6  60-gkraken.rules
"
