From 1102972856ece94494bd73f7b962983925d17054 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 9 Nov 2025 15:17:48 +0200 Subject: [PATCH] Switch to new download format and remove dependencies field from esvm service --- pkg.info | 25 ++++++++++++++++++++----- source-files/power-profiles-daemon.esv | 1 - source.sh | 21 +++------------------ 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/pkg.info b/pkg.info index 9fd87c2..28bfb50 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source-files/power-profiles-daemon.esv b/source-files/power-profiles-daemon.esv index fc89204..b30dbe0 100644 --- a/source-files/power-profiles-daemon.esv +++ b/source-files/power-profiles-daemon.esv @@ -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 diff --git a/source.sh b/source.sh index fb8e017..576a579 100644 --- a/source.sh +++ b/source.sh @@ -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