summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a603e79f52bdfffd90a71f6265294de442833ee (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

# Maintainer: Malte Veerman <maldela@halloarsch.de>

_srcname=fancontrol-gui-0.8
pkgname=fancontrol-gui
pkgver=0.8
pkgrel=2
pkgdesc="GUI for fancontrol and the fancontrol systemd service"
arch=('i686' 'x86_64')
url="https://github.com/Maldela/Fancontrol-GUI"
license=('GPL2')
depends=('qt5-quickcontrols2' 'qt5-declarative' 'lm_sensors' 'kirigami2' 'kdbusaddons5' 'knotifications5' 'kdeclarative5' 'kauth5' 'kpackage5' 'ki18n5' 'kconfig5' 'systemd')
makedepends=('git' 'extra-cmake-modules')
source=('https://github.com/Maldela/fancontrol-gui/archive/v0.8.tar.gz')
md5sums=('c2d37fcde2d189bf8601a32320f23c32')


build() {
  msg "Starting build..."

  cd "$srcdir/$_srcname"

  cmake . \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE=Release \
        -DLIB_INSTALL_DIR=lib \
        -DBUILD_TESTING=off \
        -DSTANDARD_CONFIG_FILE=/etc/fancontrol \
        -DSTANDARD_SERVICE_NAME=fancontrol \
        -DBUILD_GUI=on \
        -DBUILD_KCM=off \
        -DBUILD_HELPER=on \
        -DBUILD_PLASMOID=off \
        -DINSTALL_SHARED=on
  make
}

package() {
  cd "$srcdir/$_srcname"
  make DESTDIR="$pkgdir/" install
}