summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21e8871b4ca836a3ec3f4853282757e50db14775 (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
# Maintainer : Ashcon Mohseninia <ashcon50@gmail.com>

pkgname="razer-laptop-control-dkms-git"
pkgver=1.3.0.r0.g93782d8
pkgrel=1
pkgdesc="Kernel module and daemon for razer laptop's for RGB, fan and power control"
arch=('i686' 'x86_64')
url="https://github.com/rnd-ash/razer-laptop-control"
license=("GPL2")
depends=('dkms')
makedepends=('git')
source=("git+https://github.com/rnd-ash/razer-laptop-control")
md5sums=("SKIP")
conflicts=("openrazer-meta" "openrazer-driver-dkms" "openrazer-meta-git" "openrazer-daemon-git")
install=driver.install

pkgver() {
  cd "razer-laptop-control"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "razer-laptop-control/driver"
    make DESTDIR="$pkgdir" driver_dkms
}