Package Details: gnome-shell-extension-hue-lights 1:35-2

Git Clone URL: https://aur.archlinux.org/gnome-shell-extension-hue-lights.git (read-only, click to copy)
Package Base: gnome-shell-extension-hue-lights
Description: Gnome Shell extension for Philips Hue compatible lights controlled by the Philips Hue Bridge and for controlling Philips Hue HDMI sync box.
Upstream URL: https://github.com/vchlum/hue-lights
Licenses: MIT
Submitter: NOSDuco
Maintainer: NOSDuco
Last Packager: NOSDuco
Votes: 1
Popularity: 0.000475
First Submitted: 2023-04-03 02:10 (UTC)
Last Updated: 2024-04-14 17:13 (UTC)

Latest Comments

Genstar commented on 2024-04-15 00:25 (UTC)

Finally got it working.

Something must have changed because glib-compile-schemas's manpage wasn't giving a lot of information on why it was failing when the hook was apparently already compiling the gschema file. (not even a --verbose option)

Found out that if an extension has a schemas on the extension folder, GNOME will only look there even though the pacman hook already had compiled the file at /usr/share/glib-2.0/schemas/gschemas.compiled

Of course, putting the compiled file in the package is against GNOME packaging gudelines.

So what we'll need is to avoid extracting the schemas directory inside the extension's directory. So we'll need to add --exclude schemas/ to our extracting command.

Going from:

        bsdtar -x -f hue-lights@chlumskyvaclav.gmail.com.zip -C "$pkgdir$_extensiondir"

To:

        bsdtar -x -f hue-lights@chlumskyvaclav.gmail.com.zip -C "$pkgdir$_extensiondir" --exclude schemas/

And to not forget to add the extension that I commented previously

From:

        install -Dm644 schemas/org.gnome.shell.extensions.hue-lights.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas"

To:

        install -Dm644 extension/schemas/org.gnome.shell.extensions.hue-lights.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas"

Genstar commented on 2024-04-14 17:38 (UTC) (edited on 2024-04-14 17:47 (UTC) by Genstar)

Sorry for forgetting this one but the packaging fails at

install -Dm644 schemas/org.gnome.shell.extensions.hue-lights.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas"

I found that adding extension/ to the first path argument made it build.

So it was

install -Dm644 extension/schemas/org.gnome.shell.extensions.hue-lights.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas"

when I modified the PKGBUILD.

(EDIT: now it seems that I cannot get the system wide extension to work with it, needs further investigation, something about gschemas.compiled)

NOSDuco commented on 2024-04-14 17:13 (UTC)

@Genstar I must have botched the paste because I found the updated sha and everything. Good catch, updated now.

Genstar commented on 2024-04-14 17:03 (UTC)

Commit still points at version 33 despite the PKGBUILD having the version number changed to 35. Latest PKGBUILD commit:

-pkgver=33
+pkgver=35

Yet this line remains unchanged:

_commit=dbf4877e0d93260510f9b1257e9866a9bddeabda

Which is from the commit at https://github.com/vchlum/hue-lights/commit/dbf4877e0d93260510f9b1257e9866a9bddeabda which is titled Version bump: 33

The commit for version 35 is 634469f334995de7745f153998cb7cc6b6ee9e8e whose description can be found at https://github.com/vchlum/hue-lights/commit/634469f334995de7745f153998cb7cc6b6ee9e8e and is titled Version bump: 35