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
description: Makes power profiles handling available over D-Bus
version: "0.30"
revision: 3
revision: 4
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
license: GPL3-only
maintainers:
- [email protected]
architecture: any
type: source
depends:
@@ -17,6 +19,7 @@ optional_depends:
- python-pygobject
make_depends:
- bash-completion
- gtk-doc
- meson
- python-shtab
downloads:
+6 -3
View File
@@ -7,7 +7,7 @@
build() {
meson setup --prefix=/usr \
--buildtype=release \
-Dgtk_doc=false \
-Dgtk_doc=true \
-Dbashcomp=enabled \
-Dzshcomp=/usr/share/zsh/site-functions \
-Dtests=false \
@@ -20,11 +20,14 @@ build() {
package() {
meson install -C build --destdir="$BPM_OUTPUT"
# Remove 'tmp' directory from package
rm -r "$BPM_OUTPUT"/tmp
# Crate directory for persistent power states
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon
# Remove 'tmp' directory from package
rm -r "$BPM_OUTPUT"/tmp
# Set Exec field in dbus service to power-profiles-daemon
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 -Dm644 "$BPM_WORKDIR"/power-profiles-daemon.esv "$BPM_OUTPUT"/etc/esvm/services/power-profiles-daemon.esv