Date: Saturday, April 8, 2023 @ 18:00:44
  Author: felixonmars
Revision: 1442856

archrelease: copy trunk to community-staging-any

Added:
  home-assistant/repos/community-staging-any/
  home-assistant/repos/community-staging-any/PKGBUILD
    (from rev 1442855, home-assistant/trunk/PKGBUILD)
  home-assistant/repos/community-staging-any/home-assistant.service
    (from rev 1442855, home-assistant/trunk/home-assistant.service)

------------------------+
 PKGBUILD               |  102 +++++++++++++++++++++++++++++++++++++++++++++++
 home-assistant.service |   29 +++++++++++++
 2 files changed, 131 insertions(+)

Copied: home-assistant/repos/community-staging-any/PKGBUILD (from rev 1442855, 
home-assistant/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 18:00:44 UTC (rev 1442856)
@@ -0,0 +1,102 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Maintainer: Alexander Epaneshnikov <[email protected]>
+# Contributor: Ethan Skinner <[email protected]>
+# Contributor: GrĂ©goire Seux <[email protected]>
+# Contributor: Dean Galvin <[email protected]>
+# Contributor: NicoHood <[email protected]>
+
+pkgname=home-assistant
+pkgdesc='Open source home automation that puts local control and privacy first'
+pkgver=2023.3.6
+pkgrel=2
+epoch=1
+arch=(any)
+url=https://home-assistant.io/
+license=(APACHE)
+depends=(
+  gcc
+  python-aiodiscover
+  python-aiohttp
+  python-aiohttp-cors
+  python-astral
+  python-async-timeout
+  python-atomicwrites
+  python-attrs
+  python-awesomeversion
+  python-bcrypt
+  python-certifi
+  python-ciso8601
+  python-cryptography
+  python-dateutil
+  python-defusedxml
+  python-fnvhash
+  python-home-assistant-bluetooth
+  python-httpx
+  python-ifaddr
+  python-jinja
+  python-lru-dict
+  python-mutagen
+  python-orjson
+  python-pillow
+  python-pip
+  python-pyjwt
+  python-pytz
+  python-requests
+  python-ruamel-yaml
+  python-slugify
+  python-sqlalchemy
+  python-typing_extensions
+  python-voluptuous
+  python-voluptuous-serialize
+  python-yaml
+  python-yarl
+  python-zeroconf
+  python-setuptools
+)
+makedepends=(
+  git
+  python-build
+  python-installer
+  python-wheel
+)
+optdepends=(
+  'net-tools: Nmap host discovery'
+  'openzwave: Z-Wave integration'
+  'python-dtlssocket: Ikea Tradfri integration'
+  'python-lxml: Meteo France integration'
+  'python-paho-mqtt: mqtt integration'
+)
+_tag=ca5a88342bf742fcb1b141fb85df37bcec6e78cb
+source=(
+  git+https://github.com/home-assistant/home-assistant.git#tag=${_tag}
+  home-assistant.service
+)
+b2sums=('SKIP'
+        
'b5e181e00e499cd0c6e3922af44afe7e8043063d49c89c207beeff9b56ea2920a6f7b6d211be027cb4b6cf8450396623515dadcebdbdbdf0f934d3d16963790e')
+
+pkgver() {
+  cd home-assistant
+  git describe --tags
+}
+
+prepare() {
+  cd home-assistant
+  # lift hard dep constraints, we'll deal with breaking changes ourselves
+  sed 's/==/>=/g' -i pyproject.toml requirements.txt setup.cfg 
homeassistant/package_constraints.txt
+  # allow pip >= 20.3 to be used
+  sed 's/,<20.3//g' -i pyproject.toml requirements.txt setup.cfg 
homeassistant/package_constraints.txt
+  # allow any setuptools and wheel to be used
+  sed 's/~=62.3//; s/~=0.37.1//' -i pyproject.toml
+}
+
+build() {
+  cd home-assistant
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  python -m installer --destdir="${pkgdir}" home-assistant/dist/*.whl
+  install -Dm 644 home-assistant.service -t "${pkgdir}"/usr/lib/systemd/system/
+}
+
+# vim: ts=2 sw=2 et:

Copied: home-assistant/repos/community-staging-any/home-assistant.service (from 
rev 1442855, home-assistant/trunk/home-assistant.service)
===================================================================
--- community-staging-any/home-assistant.service                                
(rev 0)
+++ community-staging-any/home-assistant.service        2023-04-08 18:00:44 UTC 
(rev 1442856)
@@ -0,0 +1,29 @@
+[Unit]
+Description=Home assistant
+After=network.target
+
+[Service]
+Restart=on-failure
+User=hass
+Group=hass
+DynamicUser=true
+LogsDirectory=hass
+StateDirectory=hass
+WorkingDirectory=/var/lib/hass
+Environment=HOME=/var/lib/hass
+
+ExecStart=/usr/bin/hass \
+  --config /var/lib/hass/ \
+  --log-file /var/log/hass/home-assistant.log \
+  --log-rotate-days 1
+RestartForceExitStatus=100
+
+AmbientCapabilities=
+CapabilityBoundingSet=
+LockPersonality=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+
+[Install]
+WantedBy=multi-user.target

Reply via email to