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
+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