Enable documentation and change dbus service exec field
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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