95 lines
2.8 KiB
Bash
95 lines
2.8 KiB
Bash
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
# Contributor: Ethan Skinner <aur@etskinner.com>
|
|
# Contributor: Grégoire Seux <grego_aur@familleseux.net>
|
|
# Contributor: Dean Galvin <deangalvin3@gmail.com>
|
|
# Contributor: NicoHood <archlinux@nicohood.de>
|
|
|
|
pkgname=home-assistant
|
|
pkgdesc='Open source home automation that puts local control and privacy first'
|
|
pkgver=2021.4.1
|
|
pkgrel=1
|
|
arch=(any)
|
|
url=https://home-assistant.io/
|
|
license=(APACHE)
|
|
depends=(
|
|
gcc
|
|
python-aiohttp
|
|
python-aiohttp-cors
|
|
python-astral
|
|
python-async-timeout
|
|
python-attrs
|
|
python-bcrypt
|
|
python-certifi
|
|
python-ciso8601
|
|
python-cryptography
|
|
python-defusedxml
|
|
python-httpx
|
|
python-jinja
|
|
python-mutagen
|
|
python-pillow
|
|
python-pip
|
|
python-pyjwt
|
|
python-pytz
|
|
python-requests
|
|
python-ruamel-yaml
|
|
python-slugify
|
|
python-sqlalchemy
|
|
python-voluptuous
|
|
python-voluptuous-serialize
|
|
python-yaml
|
|
python-yarl
|
|
python-zeroconf
|
|
python-awesomeversion
|
|
)
|
|
makedepends=(
|
|
git
|
|
python-setuptools
|
|
)
|
|
optdepends=(
|
|
'net-tools: Nmap host discovery'
|
|
'openzwave: Z-Wave integration'
|
|
'python-dtlssocket: Ikea Tradfri integration'
|
|
'python-lxml: Meteo France integration'
|
|
)
|
|
source=(
|
|
https://github.com/home-assistant/core/archive/refs/tags/$pkgver.tar.gz
|
|
home-assistant.service
|
|
home-assistant-astral2.2.patch
|
|
)
|
|
b2sums=('68bd7579e7559f9e5d30e9f1231c62ce774b4b106adfb4f69804db9f3ff564b37a41b60f30822701af38121f77a72c9065adf5cb2bbb403a0fed90ea98b2eb78'
|
|
'0df7bbfdac09e37294ac27567e677855c72d13be3aefbd23e0a8f101cf2148302affbe9b6b586b893f77fc990f665d7b95f4916583680c06abd8f74b5cdf3da9'
|
|
'f1368a7e0b4d8f3eac6b516805b2e58fed2b5279b8c7bcb71e62dc2dfda7129044048d73014e3b8b58a439d6337059801545760f18f8e485ad2c420e95b03ff5')
|
|
|
|
prepare() {
|
|
cd core-$pkgver
|
|
|
|
patch -Np1 -i ../home-assistant-astral2.2.patch
|
|
|
|
# get scapy from git to avoid Python issue 42580
|
|
# sed 's|scapy==2.4.4|scapy @ git+https://github.com/secdev/scapy.git@46fa40fde4049ad7770481f8806c59640df24059|g' -i requirements_all.txt
|
|
# lift hard dep constraints, we'll deal with breaking changes ourselves
|
|
sed 's/==/>=/g' -i requirements.txt setup.py homeassistant/package_constraints.txt
|
|
# allow pip >= 20.3 to be used
|
|
sed 's/,<20.3//g' -i requirements.txt setup.py homeassistant/package_constraints.txt
|
|
# allow aiohttp >= 3.7.4 to be used
|
|
sed 's/3.7.4.post0/3.7.4/g' -i requirements.txt setup.py homeassistant/package_constraints.txt
|
|
# allow httpx >= 0.16.1 to be used
|
|
sed 's/0.17.1/0.16.1/g' -i requirements.txt setup.py homeassistant/package_constraints.txt
|
|
}
|
|
|
|
build() {
|
|
cd core-$pkgver
|
|
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd core-$pkgver
|
|
|
|
python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 --skip-build
|
|
|
|
install -Dm 644 ../home-assistant.service -t "${pkgdir}"/usr/lib/systemd/system/
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|