summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba5b727a3d8ae943c32915e86b9f96e672004cb2 (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
# Maintainer: cyqsimon <28627918+cyqsimon@users.noreply.github.com>

pkgname=plasma6-applets-thermal-monitor-git
_pkgname=${pkgname%-git}
pkgver=0.1.4.r0.g3d0878f
pkgrel=1
pkgdesc="A KDE Plasmoid for displaying system temperatures. Latest commit."
arch=(any)
url="https://invent.kde.org/olib/thermalmonitor"
license=("MIT")
depends=(
  plasma-workspace
  ksystemstats
  libksysguard
  kitemmodels
  kdeclarative
)
makedepends=(cmake extra-cmake-modules git)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
b2sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${_pkgname}
  cmake -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DQT_DEFAULT_MAJOR_VERSION=6
  # this does nothing for now
  cmake --build build
}

package() {
  cd ${_pkgname}
  DESTDIR="${pkgdir}" cmake --install build
  install -Dm644 -t ${pkgdir}/usr/share/licenses/${pkgname}/ LICENSE.txt
}