summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7ce8f706a36a910d9430795cb322c6bf4f71792 (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
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
_upstream_name=plasma-applet-resources-monitor
pkgname=plasma5-applets-resources-monitor
_pkgver="2.2.2-hotfix.1"
pkgver="${_pkgver/-/_}"
pkgrel=1
pkgdesc="Plasma 5 applet for monitoring CPU and RAM"
arch=('any')
url="https://www.pling.com/p/1527636/"
license=('GPL')
depends=(
    'ksysguard'
    'plasma-workspace'
)
optdepends=()
makedepends=('extra-cmake-modules')
source=("https://github.com/orblazer/${_upstream_name}/archive/v${_pkgver}.tar.gz")
sha256sums=('93d377a853b38f85b0242e52b11d94761c6df4c2eb11826a21a79a16f27e1a6f')

build() {
  cd "$srcdir/$_upstream_name-$_pkgver"
  mkdir -p build
  cd build
  cmake .. \
        -DCMAKE_INSTALL_PREFIX="$(kf5-config --prefix)" \
        -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/$_upstream_name-$_pkgver/build"
  make install DESTDIR="${pkgdir}"
}