blob: 492bfe8b4f37ec8e0e264316a52e9ecfd64a0cf8 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# Mantainer: sgar < swhaat at github >
pkgbase=esphomeyaml
pkgname=esphome
pkgver=1.12.2
pkgrel=1
pkgdesc="Solution for your ESP8266/ESP32 projects with Home Assistant"
url="https://github.com/esphome/ESPHome"
depends=('python-setuptools'
'python-voluptuous'
'python-yaml>=5.1'
'python-paho-mqtt'
'python-colorlog>=4.0.2'
'python-tornado'
'python-protobuf'
'python-tzlocal'
'python-pyserial'
'python-ifaddr'
'python-pyaes'
'python-ecdsa'
'platformio-git'
'esptool-git')
license=('MIT')
arch=('any')
replaces=('esphomeyaml')
source=("https://github.com/esphome/ESPHome/archive/v${pkgver}.tar.gz")
md5sums=('016fce93d6bbd76e5887efab737adb78')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
check() {
cd "$srcdir/${pkgname}-${pkgver}"
## Run tests, takes a while
# cp ${pkgname}/__main__.py ${pkgname}.py
# python esphome.py tests/test1.yaml compile
# python esphome.py tests/test2.yaml compile
}
|