summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f59470e3dfd39eaa0bdb49727d47d09e5b94513 (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
# Maintainer: Luca Weiss <aur (at) lucaweiss (dot) eu>

_pkgname=libopenrazer
pkgname=libopenrazer-git
pkgver=0.4.0.r0.g6671cf6
pkgrel=1
pkgdesc="Qt wrapper around the D-Bus API from OpenRazer"
arch=('x86_64')
url="https://github.com/z3ntu/libopenrazer"
license=('GPL-3.0-or-later')
depends=('qt6-base')
makedepends=('git' 'meson' 'qt6-tools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/z3ntu/libopenrazer.git')
sha512sums=('SKIP')

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

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

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