summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc9b708a10608ec44c6933d6dcff287cbf035181 (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
33
34
35
36
37
# Maintainer: Gabriele Musco <emaildigabry@gmail.com>
# Upstream URL: https://github.com/gabmus/razercommander

pkgname=razercommander-git
pkgver=1.2.1.1.r0.gcaa86a2
pkgrel=1
pkgdesc='Razer device manager for Linux'
arch=('any')
url='https://github.com/gabmus/razercommander'
license=('GPL3')
depends=('python-openrazer' 'gtk3>=3.14' 'python')
makedepends=('git' 'meson')
#install=razercommander-git.install
provides=('razercommander')
conflicts=('razercommander')
source=("razercommander::git+https://github.com/gabmus/razercommander")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/razercommander"
  rm -rf build
  mkdir build
  cd build
  meson --prefix /usr --buildtype release ..
  ninja
}

package() {
  cd "$srcdir/razercommander"
  cd build
  DESTDIR="$pkgdir" ninja install
}