diff --git a/bootstrap.d/sys-power.yml b/bootstrap.d/sys-power.yml new file mode 100644 index 000000000..7dd281400 --- /dev/null +++ b/bootstrap.d/sys-power.yml @@ -0,0 +1,49 @@ +packages: + - name: upower + metadata: + summary: D-Bus abstraction for enumerating power devices, querying history and statistics. + description: UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus. + spdx: 'GPL-2.0-or-later' + website: 'https://upower.freedesktop.org/' + maintainer: "no92 " + categories: ['sys-power'] + source: + subdir: 'ports' + git: 'https://gitlab.freedesktop.org/upower/upower.git' + tag: 'v1.90.6' + version: '1.90.6' + tools_required: + - system-gcc + - host-glib + - virtual: pkgconfig-for-target + triple: "@OPTION:arch-triple@" + pkgs_required: + - mlibc + - libgudev + - glib + revision: 1 + configure: + - args: + - 'meson' + - 'setup' + - '--cross-file' + - '@SOURCE_ROOT@/scripts/meson-@OPTION:arch-triple@.cross-file' + - '--prefix=/usr' + - '--buildtype=debugoptimized' + - '--wrap-mode=nofallback' + - '-Dsystemdsystemunitdir=no' + - '-Dos_backend=linux' + - '-Dintrospection=disabled' + - '-Didevice=disabled' + - '-Dpolkit=disabled' + - '-Dgtk-doc=false' + - '-Dman=false' + - '-Dudevrulesdir=etc/udev' + - '-Dudevhwdbdir=etc/udev' + - '@THIS_SOURCE_DIR@' + build: + - args: ['ninja'] + - args: ['ninja', 'install'] + environ: + DESTDIR: '@THIS_COLLECT_DIR@' + quiet: true diff --git a/bootstrap.yml b/bootstrap.yml index 7546857e1..03259f47a 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -43,6 +43,7 @@ imports: - file: bootstrap.d/sys-devel.yml - file: bootstrap.d/sys-kernel.yml - file: bootstrap.d/sys-libs.yml + - file: bootstrap.d/sys-power.yml - file: bootstrap.d/sys-process.yml - file: bootstrap.d/www-client.yml - file: bootstrap.d/x11-apps.yml diff --git a/patches/upower/0001-Require-gudev-1.0-version-237-or-managarm-compatabil.patch b/patches/upower/0001-Require-gudev-1.0-version-237-or-managarm-compatabil.patch new file mode 100644 index 000000000..260165c8a --- /dev/null +++ b/patches/upower/0001-Require-gudev-1.0-version-237-or-managarm-compatabil.patch @@ -0,0 +1,25 @@ +From 52481b43e51d9213aaed2dfd66219e8ce740731a Mon Sep 17 00:00:00 2001 +From: no92 +Date: Fri, 27 Sep 2024 15:08:20 +0200 +Subject: [PATCH] Require gudev-1.0 version >= 237 or managarm compatability + +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index aff36e4..ee758e6 100644 +--- a/meson.build ++++ b/meson.build +@@ -79,7 +79,7 @@ gobject_introspection = dependency('gobject-introspection-1.0', required: get_op + + + if os_backend == 'linux' +- gudev_dep = dependency('gudev-1.0', version: '>= 238') ++ gudev_dep = dependency('gudev-1.0', version: '>= 237') + idevice_dep = dependency('libimobiledevice-1.0', + version : '>= 0.9.7', + required : get_option('idevice')) +-- +2.46.1 +