summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f9e4fd6c2981c19c3959e148111ac82dcff05dd (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
32
# Maintainer: slmb3

_pkgname=razer_test
pkgname=z3ntu-razer_test-git
pkgver=r152.7d866a6
pkgrel=1
pkgdesc="A work-in-progress replacement for OpenRazer"
arch=('x86_64')
url="https://github.com/z3ntu/razer_test"
license=('GPL3')
depends=('qt5-base' 'hidapi' 'systemd-libs')
makedepends=('git' 'meson' 'qt5-tools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/z3ntu/razer_test.git')
sha512sums=('SKIP')

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

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

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