diff options
author | Jan Fader | 2020-12-27 23:09:34 +0100 |
---|---|---|
committer | Jan Fader | 2020-12-27 23:09:34 +0100 |
commit | b6252b7edfb62b53d81bfbf042f4db50ae06a270 (patch) | |
tree | 9b22fbaf1a153486d00c4dc0d54e043f42833ec4 | |
download | aur-b6252b7edfb62b53d81bfbf042f4db50ae06a270.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..98d139953624 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python3-sensors-git + pkgdesc = Python bindings to libsensors + pkgver = r49.ef46fc8 + pkgrel = 1 + url = http://pypi.python.org/pypi/PySensors/ + arch = any + license = GPL + makedepends = git + depends = python3 + depends = lm_sensors + source = git+https://github.com/bastienleonard/pysensors.git#commit=ef46fc8eb181ecb8ad09b3d80bc002d23d9e26b3 + sha256sums = SKIP + +pkgname = python3-sensors-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8794798cde6d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.tar.gz +*.tar.xz +src/* +pkg/* +pysensors diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..acd473d030e2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Jan Fader <jan.fader@web.de> + +pkgname=python3-sensors-git +pkgver=r49.ef46fc8 +_pkgname=pysensors +pkgrel=1 +pkgdesc='Python bindings to libsensors' +arch=('any') +url='http://pypi.python.org/pypi/PySensors/' +license=('GPL') +depends=('python3' 'lm_sensors') +makedepends=('git') +source=(git+https://github.com/bastienleonard/pysensors.git#commit=ef46fc8eb181ecb8ad09b3d80bc002d23d9e26b3) +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$_pkgname" + + python3 setup.py build +} + +package() { + cd "$srcdir/$_pkgname" + + python3 setup.py install -O1 --prefix='/usr' --root="$pkgdir" +} + +# vim:set ts=2 sw=2 et: |