summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bb232eb309ec797d1755f178fca60b1f9a6f71b (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
# Maintainer: Nils Czernia <nils[at]czserver.de>

pkgname=python-bme280-git
_pkgname=bme280
pkgver=25376a6
pkgrel=1
pkgdesc="A Python library for accessing the BME280 combined humidity and pressure from Bosch via python-smbus using the I2C interface."
url="https://github.com/cmur2/python-bme280"
arch=("any")
license=("MIT")
depends=("python" "i2c-tools")
source=("${_pkgname}::git+https://github.com/cmur2/python-bme280.git")
sha512sums=("SKIP")
conflicts=("python-bme280")

pkgver() {
  cd "${_pkgname}"
  git describe --always | sed -e 's|-|.|g'
}

package() {
  cd "${srcdir}/${_pkgname}"
  python -m pip install --root="${pkgdir}" .

}

# vim: ts=2 sw=2 et: