summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25b3205549ca66804a88bcdc8af93f3775cd219f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

_upstream=RazerGenie
_pkgname=razergenie
pkgname=razergenie-git
pkgver=0.7.r167.g776e653
pkgrel=1
pkgdesc="Qt application for configuring your Razer devices under GNU/Linux."
arch=('x86_64')
url="https://github.com/z3ntu/RazerGenie"
license=('GPL3')
depends=('libopenrazer' 'qt5-base' 'hicolor-icon-theme' 'openrazer-daemon')
makedepends=('git' 'meson' 'qt5-tools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/z3ntu/RazerGenie.git')
sha512sums=('SKIP')

pkgver() {
  cd $srcdir/$_upstream
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson "$_upstream" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}