summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 159a0e84d4f3751f6df7222198bfc1c1437521cb (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
# Maintainer: Adam Honse <calcprogrammer10@gmail.com>
pkgname=openrgb-plugin-fan-sync-git
pkgver=0.9.7.g7e1d5c8
pkgrel=1
pkgdesc="Fan sync plugin for OpenRGB"
arch=('any')
url="https://gitlab.com/OpenRGBDevelopers/OpenRGBFanSyncPlugin"
license=('GPL-2.0-only')
depends=('qt5-tools' 'openrgb')
makedepends=('git')
provides=('openrgb-plugin-fan-sync')
conflicts=('openrgb-plugin-fan-sync')
source=("git+https://gitlab.com/OpenRGBDevelopers/OpenRGBFanSyncPlugin.git")
sha256sums=('SKIP')

pkgver() {
    cd OpenRGBFanSyncPlugin
    qmake OpenRGBFanSyncPlugin.pro 2>&1 | grep VERSION_AUR | cut -d ':' -f 3 | tr -d ' '
}

build() {
    cd "$srcdir/OpenRGBFanSyncPlugin"
    git submodule update --init --recursive
    qmake OpenRGBFanSyncPlugin.pro PREFIX=/usr/
    make
}

package() {
    cd OpenRGBFanSyncPlugin
    make INSTALL_ROOT="$pkgdir" install
}