From 25376d129fa411a86d1b0400d5d171413f231cca Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 1 Jun 2026 14:42:27 +0300 Subject: [PATCH] Update package version to 2.60.4 --- pkg.info | 6 +++--- source-files/add-xres-toggle.diff | 30 ++++++++++++++++++++++++++++++ source.sh | 9 ++++++++- 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 source-files/add-xres-toggle.diff diff --git a/pkg.info b/pkg.info index c24a324..e0ec5f6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: at-spi2-core description: Base DBus XML interfaces for accessibility, the accessibility registry daemon, and atspi library -version: 2.60.3 -revision: 2 +version: 2.60.4 +revision: 1 url: https://gitlab.gnome.org/GNOME/at-spi2-core license: LGPL2.1-or-later maintainers: @@ -28,4 +28,4 @@ downloads: - url: https://download.gnome.org/sources/at-spi2-core/${BPM_PKG_VERSION%.*}/at-spi2-core-${BPM_PKG_VERSION}.tar.xz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 21056bc04e43e8ed34fdafd916a0ddcc29ec03a4ce6cf5aacac1ddf6ef185ef7 + checksum: 1a1f5ba9805917f41fc6aa6823dcf887a291d607a427e2d5afb6b5dfa65070c7 diff --git a/source-files/add-xres-toggle.diff b/source-files/add-xres-toggle.diff new file mode 100644 index 0000000..7d08e93 --- /dev/null +++ b/source-files/add-xres-toggle.diff @@ -0,0 +1,30 @@ +diff --git a/meson.build b/meson.build +--- meson.build ++++ meson.build +@@ -165,9 +165,9 @@ + endif + xinput_dep = dependency('xi') + x11_deps += xinput_dep + +- xres_dep = dependency('xres', required: false) ++ xres_dep = dependency('xres', required: get_option('xres')) + at_spi_conf.set('HAVE_XRES', xres_dep.found()) + endif + + # Alignments +diff --git a/meson_options.txt b/meson_options.txt +--- meson_options.txt ++++ meson_options.txt +@@ -39,8 +39,12 @@ + option('x11', + description: 'Enable X11 support', + type: 'feature', + value: 'auto') ++option('xres', ++ description: 'Build with Xres', ++ type: 'feature', ++ value: 'auto') + option('atk_only', + description: 'Build only the ATK stub library without atspi or at-spi2-atk (UNSUPPORTED)', + type: 'boolean', + value: false) diff --git a/source.sh b/source.sh index 1db9672..0759713 100644 --- a/source.sh +++ b/source.sh @@ -2,10 +2,17 @@ # 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" + patch -Np1 -i "$BPM_WORKDIR"/add-xres-toggle.diff +} + # The build function is executed in the source directory # This function is used to compile the source code build() { - meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Duse_systemd=false build + meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Duse_systemd=false -Dxres=disabled build meson compile -C build }