summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a4987dde944c6055f4bb390182adaf90644ff70 (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: Giancarlo Razzolini <grazzolini@archlinux.org
pkgname=pysensors-git
pkgver=r48.c8976ab
pkgrel=1
pkgdesc="Easy hardware health monitoring in Python for Linux systems"
arch=('x86_64')
url="https://github.com/bastienleonard/pysensors"
license=('custom')
depends=('lm_sensors' 'python')
makedepends=('git')
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

build() {
	cd "$srcdir/$pkgname"
        python setup.py build
}

package() {
	cd "$srcdir/$pkgname"
        export PYTHONHASHSEED=0
        python setup.py install --root="$pkgdir" --optimize=1
        install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}