summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a442c03f6cc831082e3f7ba8a10af72fad867556 (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
# Maintainer: X0rg
# Contributor: Antoine Lubineau <antoine@lubignon.info>

_pkgname=radeontop
pkgname=$_pkgname-git
epoch=1
pkgver=0.8.r20.g976cae0
pkgrel=2
pkgdesc='Radeon cards monitoring utility'
arch=('i686' 'x86_64')
url='https://github.com/clbr/radeontop'
license=('GPL3')
depends=('ncurses')
makedepends=('git')
provides=('radeontop')
conflicts=('radeontop')
source=('git+https://github.com/clbr/radeontop.git')
sha256sums=('SKIP')

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

prepare() {
	cd "$srcdir/$_pkgname"
	sed -i "s/sbin/bin/" Makefile
}

build() {
	cd "$srcdir/$_pkgname"
	make
}

package() {
	cd "$srcdir/$_pkgname"
	make DESTDIR="$pkgdir" install
}