Enable documentation and change dbus service exec field

This commit is contained in:
2026-03-20 15:17:03 +02:00
parent 0366e8a707
commit 7282567ce9
2 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -1,9 +1,11 @@
name: power-profiles-daemon name: power-profiles-daemon
description: Makes power profiles handling available over D-Bus description: Makes power profiles handling available over D-Bus
version: "0.30" version: "0.30"
revision: 3 revision: 4
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
license: GPL3-only license: GPL3-only
maintainers:
- [email protected]
architecture: any architecture: any
type: source type: source
depends: depends:
@@ -17,6 +19,7 @@ optional_depends:
- python-pygobject - python-pygobject
make_depends: make_depends:
- bash-completion - bash-completion
- gtk-doc
- meson - meson
- python-shtab - python-shtab
downloads: downloads:
+6 -3
View File
@@ -7,7 +7,7 @@
build() { build() {
meson setup --prefix=/usr \ meson setup --prefix=/usr \
--buildtype=release \ --buildtype=release \
-Dgtk_doc=false \ -Dgtk_doc=true \
-Dbashcomp=enabled \ -Dbashcomp=enabled \
-Dzshcomp=/usr/share/zsh/site-functions \ -Dzshcomp=/usr/share/zsh/site-functions \
-Dtests=false \ -Dtests=false \
@@ -20,11 +20,14 @@ build() {
package() { package() {
meson install -C build --destdir="$BPM_OUTPUT" meson install -C build --destdir="$BPM_OUTPUT"
# Remove 'tmp' directory from package
rm -r "$BPM_OUTPUT"/tmp
# Crate directory for persistent power states # Crate directory for persistent power states
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon
# Remove 'tmp' directory from package # Set Exec field in dbus service to power-profiles-daemon
rm -r "$BPM_OUTPUT"/tmp sed -i 's|^Exec=.*|Exec=/usr/libexec/power-profiles-daemon|' "$BPM_OUTPUT"/usr/share/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service
# Install esvm service # Install esvm service
install -Dm644 "$BPM_WORKDIR"/power-profiles-daemon.esv "$BPM_OUTPUT"/etc/esvm/services/power-profiles-daemon.esv install -Dm644 "$BPM_WORKDIR"/power-profiles-daemon.esv "$BPM_OUTPUT"/etc/esvm/services/power-profiles-daemon.esv