89 lines
2.3 KiB
Bash
89 lines
2.3 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.3.4
|
|
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=('1b8b6e4d74b0be42a71e6f858c6c6fe17dc810ecdc595563e72c2dfd7c540f1c727b21525862e6094ffe3065565525f7038daddf73b599770705aec7749882fd'
|
|
'0df7bbfdac09e37294ac27567e677855c72d13be3aefbd23e0a8f101cf2148302affbe9b6b586b893f77fc990f665d7b95f4916583680c06abd8f74b5cdf3da9'
|
|
'29d510f04c4daa1be51f0b4b690b0b75a72574892d0b967332b68d7cdac1a74add90867e15f3b74117d25a3163f10604d972fa2060054d9f92e7b68bd1f7ed6f')
|
|
|
|
prepare() {
|
|
cd core-$pkgver
|
|
|
|
patch -Np1 -i ../home-assistant-astral2.2.patch
|
|
|
|
# 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
|
|
}
|
|
|
|
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:
|