Enable documentation and change dbus service exec field
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user