summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37785753c4e0173b33c611011b1d8f7f4677e801 (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: slimb

_pkgname=libopenrazer
pkgname=z3ntu-libopenrazer-git
pkgver=r81.1829dab
pkgrel=1
pkgdesc="Subproject of https://github.com/z3ntu/RazerGenie"
arch=('x86_64')
url="https://github.com/z3ntu/libopenrazer"
license=('GPL3')
depends=('qt5-base' 'razer_test')
makedepends=('git' 'meson' 'qt5-tools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/z3ntu/libopenrazer.git')
sha512sums=('SKIP')

pkgver() {
   cd "$_pkgname"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

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