You are not logged in.

#1 2017-02-18 11:07:43

post
Member
Registered: 2015-02-15
Posts: 29

glances with sensors and batinfo

glances: https://www.archlinux.org/packages/comm … y/glances/

python-sensors is in the AUR: https://aur.archlinux.org/packages/pyth … ensors-hg/
python-batinfo is not. My shot at it:

_pkgname=batinfo
pkgname=python-${_pkgname}
pkgver=0.4.2
pkgrel=1
pkgdesc="A Python lib to grab batteries' informations on Linux operating system"
arch=('any')
url='https://github.com/nicolargo/batinfo'
license=('GPL')
depends=('python')
makedepends=('cython' 'python-setuptools')
source=("https://github.com/nicolargo/batinfo/archive/v${pkgver}.tar.gz")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}

Offline

Board footer

Powered by FluxBB