summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aed7f71d08c2daeb175ca50138d9998fc1395e9e (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
# Maintainer: Shayne Hartford <shayneehartford@gmail.com>

_pkgname=wooting-rgb-sdk
pkgname=${_pkgname}-git
pkgver=r105.bfadbce
pkgrel=1
pkgdesc="Customize colors on Wooting Keyboard #WootDev"
arch=('any')
url="https://github.com/WootingKb/$_pkgname"
license=('MPL2')
depends=('libusb')
makedepends=('git' 'hidapi' 'libusb')
provides=("libwooting-rgb-sdk" $_pkgname)
conflicts=("libwooting-rgb-sdk")
source=("git+$url.git#branch=feature/lekker-support")
md5sums=("SKIP")

pkgver() {
    cd "$srcdir/$_pkgname"

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

package() {
    cd "$srcdir/$_pkgname/linux"

    CFLAGS+=" -fPIC" prefix="$pkgdir/usr" make install
}