Switch to new download format and remove dependencies field from esvm service

This commit is contained in:
2025-11-09 15:17:48 +02:00
parent f9f4c2d89c
commit 1102972856
3 changed files with 23 additions and 24 deletions
+20 -5
View File
@@ -1,11 +1,26 @@
name: power-profiles-daemon
description: Makes power profiles handling available over D-Bus
version: 0.30
revision: 2
version: "0.30"
revision: 3
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
license: GPL3-only
architecture: any
depends: ["gcc-libs", "glib", "glibc", "libgudev", "polkit", "upower"]
optional_depends: ["python-pygobject"]
make_depends: ["bash-completion", "meson", "python-shtab"]
type: source
depends:
- gcc-libs
- glib
- glibc
- libgudev
- polkit
- upower
optional_depends:
- python-pygobject
make_depends:
- bash-completion
- meson
- python-shtab
downloads:
- url: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/archive/${BPM_PKG_VERSION}/power-profiles-daemon-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 90f2c95024861d9f4062abedd514084939224e7a49edd468f001af7260ec8e6c
-1
View File
@@ -1,6 +1,5 @@
name: power-profiles-daemon
description: Start the power-profiles-daemon
dependencies: ["udevd"]
type: background
start_cmd: /usr/libexec/power-profiles-daemon
exit_method: kill
+3 -18
View File
@@ -2,38 +2,23 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/archive/${BPM_PKG_VERSION}/power-profiles-daemon-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
mkdir build
cd build
meson setup --prefix=/usr \
--buildtype=release \
-Dgtk_doc=false \
-Dbashcomp=enabled \
-Dzshcomp=/usr/share/zsh/site-functions \
-Dtests=false \
-Dsystemdsystemunitdir=/tmp ..
meson compile
-Dsystemdsystemunitdir=/tmp build
meson compile -C build
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
cd build
meson install --destdir="$BPM_OUTPUT"
meson install -C build --destdir="$BPM_OUTPUT"
# Crate directory for persistent power states
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon