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

pkgname=python-bme280-git
_pkgname=bme280
pkgver=25376a6
pkgrel=2
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")
makedepends=("python-pip")
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: