summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d559bd9910a81faf95623133c29246dafd52aeea (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
# Maintainer: Senderman <doletov.fyodor@yandex.ru>
pkgname=nvidia-system-monitor-qt
pkgver=1.5
pkgrel=1
pkgdesc="Task Manager for Linux for Nvidia graphics cards (QT vesrion)"
arch=('x86_64')
url="https://github.com/congard/${pkgname}"
license=('MIT')
depends=('nvidia-utils' 'qt5-base' 'which')
makedepends=('cmake')
source=("${pkgname}::https://github.com/congard/nvidia-system-monitor-qt/archive/v${pkgver}.tar.gz" "${pkgname}.desktop")
md5sums=('6a05a35aa6159a946bab3264b832a5f0'
         'dedc8a5da5ad205be610a688d0b3fec5')


build() {
    cd $srcdir/${pkgname}-${pkgver}
    mkdir build
    cmake -DCMAKE_BUILD_TYPE=Release -DIconPath=/usr/share/icons/hicolor/512x512/apps/nvidia-system-monitor-qt.png  -B build -DVersionPrefix="AUR (compiled from source)" -G "Unix Makefiles"
    cmake --build build --target qnvsm -- -j $(nproc)
}

package() {
    cd $srcdir/${pkgname}-${pkgver}
    install -Dm0644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
    install -Dm0755 build/qnvsm $pkgdir/usr/bin/qnvsm
    install -Dm0644 icon.png $pkgdir/usr/share/icons/hicolor/512x512/apps/${pkgname}.png
    install -Dm0755 ${srcdir}/${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop
}