summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 825b1d9cfdde78966608f142242d795a7186999d (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: Dmitry Kharitonov <darksab0r at gmail com>

pkgname=gmonitor-git
_pkgbasename=gmonitor
pkgver=v1.2.r5.geace4da
pkgrel=1
pkgdesc="NVIDIA GPU real-time monitoring program (core, VRAM, PCI-E & memory bus usage and temperature of GPUs)"
arch=('i686' 'x86_64')
url="https://github.com/mountassir/gmonitor"
license=('GPL')
depends=('nvidia-utils')
makedepends=('git')
conflicts=('gmonitor')
source=('gmonitor::git+https://github.com/mountassir/gmonitor.git#branch=master')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgbasename}"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$srcdir/${_pkgbasename}/src"
  make
}

package() {
  cd "$srcdir/${_pkgbasename}/src"
  install -Dm 755 gmonitor "${pkgdir}"/usr/bin/gmonitor
}