summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbca072308d2f10f8751543bee2b1e4d12fcf771 (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
30
31
32
33
34
35
# Maintainer: Gabriel Rauter <rauter.gabriel@gmail.com>

_pkgname=zigpy-deconz
pkgname=python-$_pkgname
pkgver=0.13.0
pkgrel=1
pkgdesc='Zigpy support for deCONZ based Zigbee radio devices.'
url='https://github.com/zigpy/zigpy-deconz'
arch=('any')
license=('GPL3')
depends=('python' 'python-zigpy' 'python-pyserial-asyncio')
makedepends=('git')
checkdepends=('python-pytest-asyncio')
source=($pkgname::"git+https://github.com/zigpy/zigpy-deconz#tag=$pkgver")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
  cd $pkgname
  pytest
}

package() {
  cd $pkgname
  python setup.py install --root="$pkgdir" -O1 --skip-build
}