summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baf606bdaa676667f36f59aa2e4393402b38d05f (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
38
39
40
41
42
43
# Maintainer: Campbell Jones <dev at serebit dot com>

pkgbase=wraith-master
pkgname=("wraith-master-common" "wraith-master-cli" "wraith-master-gtk")
pkgver=1.2.1
pkgrel=3
pkgdesc="A Wraith Prism RGB control application"
arch=("x86_64")
url="https://gitlab.com/serebit/wraith-master"
license=("APACHE")
makedepends=("gradle" "scdoc" "libusb" "gtk3")
source=("$pkgname-v$pkgver.tar.gz"::"https://gitlab.com/serebit/$pkgbase/-/archive/v$pkgver/$pkgbase-v$pkgver.tar.gz")
sha256sums=("fcf150b5f45e9b9ffad60e1a72f7251d4488fba28d5b325688c931f5098e21ca")

build() {
    cd "$pkgbase-v$pkgver"
    export GRADLE_USER_HOME=$PWD/.gradle
    export KONAN_DATA_DIR=$PWD/.konan
    make common cli gtk GRADLE=gradle
}

package_wraith-master-common() {
    pkgdesc="Udev rules for wraith-master frontends"

    cd "$pkgbase-v$pkgver"
    make install-common DESTDIR="$pkgdir" PREFIX=/usr
}

package_wraith-master-cli() {
    pkgdesc="Command-line application for controlling RGB on the Wraith Prism"
    depends=("wraith-master-common" "libusb")

    cd "$pkgbase-v$pkgver"
    make install-cli DESTDIR="$pkgdir" PREFIX=/usr
}

package_wraith-master-gtk() {
    pkgdesc="Native Linux GUI for controlling RGB on the Wraith Prism"
    depends=("wraith-master-common" "libusb" "gtk3")

    cd "$pkgbase-v$pkgver"
    make install-gtk DESTDIR="$pkgdir" PREFIX=/usr
}