summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b36995943419d18c8b2a569fc2e7c9468e577821 (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
# Maintainer: UnicornDarkness
# Contributor: Anthony Wang <a at exozy dot me>

_pkgbase=zenmonitor3
pkgname=zenmonitor3-git
epoch=2
pkgver=r90.a09f0b2
pkgrel=2
pkgdesc="A monitoring software for AMD Zen-based CPUs, now with Zen 3 support!"
arch=('i686' 'x86_64')
url="https://git.unnamed.website/zenmonitor3"
license=('MIT')
depends=('zenpower3' 'gtk3')
optdepends=('polkit: support application shortcut to launch Zen monitor as root')
makedepends=('git')
provides=('zenmonitor' 'zenmonitor-git' 'zenmonitor3')
conflicts=('zenmonitor' 'zenmonitor-git' 'zenmonitor3')
source=("git+https://git.unnamed.website/zenmonitor3")
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgbase"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
	cd "$srcdir/$_pkgbase"
	make build build-cli
}

package() {
	cd "$srcdir/$_pkgbase"
	install -dvm755 "$pkgdir/usr/share/applications" "$pkgdir/usr/share/polkit-1/actions"
	install -Dvm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	make DESTDIR="$pkgdir" PREFIX="/usr" install install-cli install-polkit
}