Switch to new download format and remove dependencies field from esvm service
This commit is contained in:
@@ -1,11 +1,26 @@
|
|||||||
name: power-profiles-daemon
|
name: power-profiles-daemon
|
||||||
description: Makes power profiles handling available over D-Bus
|
description: Makes power profiles handling available over D-Bus
|
||||||
version: 0.30
|
version: "0.30"
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
|
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
|
||||||
license: GPL3-only
|
license: GPL3-only
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "glib", "glibc", "libgudev", "polkit", "upower"]
|
|
||||||
optional_depends: ["python-pygobject"]
|
|
||||||
make_depends: ["bash-completion", "meson", "python-shtab"]
|
|
||||||
type: source
|
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,6 +1,5 @@
|
|||||||
name: power-profiles-daemon
|
name: power-profiles-daemon
|
||||||
description: Start the power-profiles-daemon
|
description: Start the power-profiles-daemon
|
||||||
dependencies: ["udevd"]
|
|
||||||
type: background
|
type: background
|
||||||
start_cmd: /usr/libexec/power-profiles-daemon
|
start_cmd: /usr/libexec/power-profiles-daemon
|
||||||
exit_method: kill
|
exit_method: kill
|
||||||
|
|||||||
@@ -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 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
|
# 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
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
meson setup --prefix=/usr \
|
meson setup --prefix=/usr \
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
-Dgtk_doc=false \
|
-Dgtk_doc=false \
|
||||||
-Dbashcomp=enabled \
|
-Dbashcomp=enabled \
|
||||||
-Dzshcomp=/usr/share/zsh/site-functions \
|
-Dzshcomp=/usr/share/zsh/site-functions \
|
||||||
-Dtests=false \
|
-Dtests=false \
|
||||||
-Dsystemdsystemunitdir=/tmp ..
|
-Dsystemdsystemunitdir=/tmp build
|
||||||
meson compile
|
meson compile -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
meson install --destdir="$BPM_OUTPUT"
|
|
||||||
|
|
||||||
# Crate directory for persistent power states
|
# Crate directory for persistent power states
|
||||||
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon
|
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon
|
||||||
|
|||||||
Reference in New Issue
Block a user