systemd/gnome-settings-daemon: new aport (MR 5563)
Integrates tightly with systemd Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
# Forked from Alpine INSERT-REASON-HERE (CHANGEME!)
|
||||
|
||||
pkgname=gnome-settings-daemon
|
||||
pkgver=9999
|
||||
_pkgver=44.1
|
||||
pkgrel=1
|
||||
pkgdesc="GNOME settings daemon"
|
||||
url="https://gitlab.gnome.org/GNOME/gnome-settings-daemon"
|
||||
arch="all"
|
||||
options="!check" # tests fail on builders
|
||||
license="GPL-2.0-only AND LGPL-2.1-only"
|
||||
depends="pulseaudio"
|
||||
depends_dev="
|
||||
alsa-lib-dev
|
||||
colord-dev
|
||||
cups-dev
|
||||
geoclue-dev
|
||||
geocode-glib-dev>=3.26.4-r1
|
||||
lcms2-dev
|
||||
libcanberra-dev
|
||||
libgweather4-dev
|
||||
libnotify-dev
|
||||
libwacom-dev
|
||||
modemmanager-dev
|
||||
networkmanager-dev
|
||||
nss-dev
|
||||
pango-dev
|
||||
polkit-dev
|
||||
pulseaudio-dev
|
||||
upower-dev
|
||||
"
|
||||
makedepends="
|
||||
$depends_dev
|
||||
coreutils
|
||||
gcr4-dev
|
||||
glib-dev
|
||||
gnome-desktop-dev
|
||||
gsettings-desktop-schemas-dev
|
||||
gtk+3.0-dev
|
||||
libxml2-utils
|
||||
meson
|
||||
"
|
||||
checkdepends="
|
||||
gnome-session
|
||||
gnome-shell
|
||||
py3-dbusmock
|
||||
py3-gobject3
|
||||
umockdev-dev
|
||||
"
|
||||
subpackages="$pkgname-dev $pkgname-lang"
|
||||
source="https://download.gnome.org/sources/gnome-settings-daemon/${_pkgver%.*}/gnome-settings-daemon-$_pkgver.tar.xz
|
||||
dont-use-logind-for-brightness-changing.patch
|
||||
"
|
||||
builddir="$srcdir/gnome-settings-daemon-$_pkgver"
|
||||
|
||||
build() {
|
||||
abuild-meson \
|
||||
-Db_lto=true \
|
||||
-Dsystemd=true \
|
||||
. output
|
||||
meson compile -C output
|
||||
}
|
||||
|
||||
check() {
|
||||
meson test --no-rebuild --print-errorlogs -C output
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
||||
}
|
||||
sha512sums="
|
||||
a955d74a594d49f67a5c27ac60d6f1e9b4aba7b12cbd0af8d3be02c4b2e8385f1abfbe08b62177b69851e9202960a17429373bf5533adbd73699232fefea6c79 gnome-settings-daemon-44.1.tar.xz
|
||||
fd80b939a14bbc5dd502afda0bc6511f2d9c045018680e5ae7fbec32efadb564c5060ec91d374330f246d70571aad5979ce8c175175a29b5ccec3443c8286dc6 dont-use-logind-for-brightness-changing.patch
|
||||
"
|
||||
@@ -0,0 +1,16 @@
|
||||
Brightness control is currently broken with elogind, so fall back to
|
||||
the previous codepath which doesn't use elogind.
|
||||
See https://github.com/elogind/elogind/issues/158
|
||||
diff --git a/plugins/power/gsd-backlight.c b/plugins/power/gsd-backlight.c
|
||||
index ca5f272..59048d9 100644
|
||||
--- a/plugins/power/gsd-backlight.c
|
||||
+++ b/plugins/power/gsd-backlight.c
|
||||
@@ -482,7 +482,7 @@ gsd_backlight_set_brightness_val_async (GsdBacklight *backlight,
|
||||
if (backlight->udev_device != NULL) {
|
||||
BacklightHelperData *task_data;
|
||||
|
||||
- if (backlight->logind_proxy) {
|
||||
+ if (0) {
|
||||
g_dbus_proxy_call (backlight->logind_proxy,
|
||||
"SetBrightness",
|
||||
g_variant_new ("(ssu)",
|
||||
Reference in New Issue
Block a user