Initial commit

This commit is contained in:
2026-05-22 18:17:52 +03:00
commit 5c638b88ef
5 changed files with 100 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Ignore BPM archives and signatures
*.bpm
*.bpm.sig
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Gitlab repository
REPO="GNOME/dconf-editor"
# Replace slash with URL encoded representation
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name')
echo "$TAG_NAME"
+25
View File
@@ -0,0 +1,25 @@
name: dconf-editor
description: GSettings editor for GNOME
version: "49.0"
revision: 1
url: https://apps.gnome.org/DconfEditor/
license: GPL3-or-later
maintainers:
- [email protected]
architecture: any
type: source
depends:
- dconf
- glib
- glibc
- gtk3
- hicolor-icon-theme
- libhandy
make_depends:
- meson
- vala
downloads:
- url: https://gitlab.gnome.org/GNOME/dconf-editor/-/archive/${BPM_PKG_VERSION}/dconf-editor-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 2a66fa7221974d9b1b9d088551b284dc53f35683634234864e1c21890e43cee2
@@ -0,0 +1,26 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Maximiliano Sandoval <[email protected]>
Date: Wed, 6 Mar 2024 18:31:15 +0100
Subject: [PATCH] main: Set prgname to application id
This will set the xdg-shell app_id correctly. See [1].
It also sets wmclass correctly to the APPLICATION_ID rather than gnome-boxes.
[1] https://docs.gtk.org/gtk4/migrating-3to4.html#set-a-proper-application-id
---
editor/dconf-editor.vala | 1 +
1 file changed, 1 insertion(+)
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index d9dd475397fc..a899e5f13b0c 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -345,6 +345,7 @@ private class ConfigurationEditor : Gtk.Application, BaseApplication
Hdy.init ();
Environment.set_application_name (PROGRAM_NAME);
+ Environment.set_prgname ("ca.desrt.dconf-editor");
Gtk.Window.set_default_icon_name ("ca.desrt.dconf-editor");
Hdy.StyleManager.get_default ().set_color_scheme (PREFER_LIGHT);
+34
View File
@@ -0,0 +1,34 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# 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
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
# Set prgname to application ID
# https://gitlab.gnome.org/GNOME/dconf-editor/-/merge_requests/38
patch -Np1 -i "$BPM_WORKDIR"/0001-main-Set-prgname-to-application-id.patch
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
meson setup build --prefix=/usr
meson compile -C build
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
meson test -C build --print-errorlogs
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
meson install -C build --destdir="$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/dconf-editor/COPYING
}