Skip to content

Commit

Permalink
upower: add port
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Sep 27, 2024
1 parent 5414d71 commit 956cdd9
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
49 changes: 49 additions & 0 deletions bootstrap.d/sys-power.yml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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:[email protected]'
- '--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
1 change: 1 addition & 0 deletions bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 52481b43e51d9213aaed2dfd66219e8ce740731a Mon Sep 17 00:00:00 2001
From: no92 <[email protected]>
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

0 comments on commit 956cdd9

Please sign in to comment.