Package Details: python-home-assistant-hacs 2.0.5-1

Git Clone URL: https://aur.archlinux.org/python-home-assistant-hacs.git (read-only, click to copy)
Package Base: python-home-assistant-hacs
Description: Manage and discover custom elements for Home Assistant directly from the UI
Upstream URL: https://hacs.xyz
Licenses: MIT
Conflicts: home-assistant-hacs
Replaces: home-assistant-hacs
Submitter: AlD
Maintainer: AlD
Last Packager: AlD
Votes: 1
Popularity: 0.018122
First Submitted: 2024-10-07 21:39 (UTC)
Last Updated: 2025-02-06 22:01 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

mqs commented on 2025-07-05 12:20 (UTC) (edited on 2025-07-05 12:20 (UTC) by mqs)

@elnappo I think I solved the issue with the following patch, using systemd-tmpfiles, which gets executed via pacman hooks anyways:

diff --git a/PKGBUILD b/PKGBUILD
index 332eaf6..f6f1904 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=python-home-assistant-hacs
 pkgver=2.0.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Manage and discover custom elements for Home Assistant directly from the UI'
 arch=('any')
 url='https://hacs.xyz'
@@ -14,7 +14,12 @@ sha512sums=('fcb91d2df1ee07234fbd13b1a859181c0c64022b04819503cab0980bc7fb345c070
 b2sums=('b81a58ce0a3b31e019b4f219c721f1e11e2f9db9cb5ce82e19686dd6f3830eca2428b82b3dfd7104993db899aea508acbed093736a05e68d4bcf54d68b0e0c99')

 package() {
-  local hacs_path="$pkgdir/var/lib/private/hass/custom_components/hacs"
+  local hacs_path_local="/var/lib/private/hass/custom_components/hacs"
+  local hacs_path="$pkgdir$hacs_path_local"
+
+  # ensure that hacs_path gets the right ownership (via hooks)
+  install -vd "$pkgdir/usr/lib/tmpfiles.d"
+  echo "Z $hacs_path_local - hass hass - -" > "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"

   # ensure private has 0700 perms
   install -vdm700 "$pkgdir/var/lib/private"

elnappo commented on 2025-02-01 12:25 (UTC)

Had to manually change ownership of /var/lib/hass/custom_components/ with chown -R hass:hass /var/lib/hass/custom_components/.