# Maintainer: Dan B <unknown@cryptoconspiracy.io>
pkgname=alien-thunder
pkgver=1.2.2
pkgrel=1
pkgdesc="Per-key RGB, G-Mode on Fn+F1, and temperature and fan readouts (panel widget and floating overlay) for Alienware laptops on KDE Plasma"
arch=('any')
url="https://github.com/cryptoconspiracy/alien-thunder"
license=('MIT')
depends=('python' 'pyside6' 'python-dbus' 'python-gobject' 'libgudev' 'layer-shell-qt' 'power-profiles-daemon')
makedepends=('gettext')
optdepends=('plasma-workspace: the panel widget')
install=alien-thunder.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('e9f0fcc085ef6fcf355522f5c268b5a77c71aa51ee88becc68529665071dbb34')

build() {
  cd "$pkgname-$pkgver"
  make locales
}

check() {
  cd "$pkgname-$pkgver"
  make check
}

package() {
  cd "$pkgname-$pkgver"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}
