From ecee23376f3bac84b7d790d44fb1c3c4ae0830b4 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 16 Sep 2025 12:10:27 +0300 Subject: [PATCH] Update package version to 2.58.0 --- check-version.sh | 2 +- pkg.info | 2 +- source.sh | 11 +++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/check-version.sh b/check-version.sh index 0b464b0..ed33c2a 100644 --- a/check-version.sh +++ b/check-version.sh @@ -7,7 +7,7 @@ REPO="GNOME/at-spi2-core" 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') +TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/releases/ | jq -r '.[].tag_name' | sort -V | tail -n1) # Trim 'v' character in TAG_NAME variable VERSION=$(echo "$TAG_NAME" | tr -d 'v') diff --git a/pkg.info b/pkg.info index ef8a7f7..552a922 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: at-spi2-core description: Base DBus XML interfaces for accessibility, the accessibility registry daemon, and atspi library -version: 2.57.2 +version: 2.58.0 url: https://gitlab.gnome.org/GNOME/at-spi2-core license: LGPL2.1-or-later architecture: any diff --git a/source.sh b/source.sh index 85c7055..c1176eb 100644 --- a/source.sh +++ b/source.sh @@ -15,19 +15,14 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Duse_systemd=false .. - meson compile + meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Duse_systemd=false build + meson compile -C build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - - meson install --destdir="$BPM_OUTPUT" + meson install -C build --destdir="$BPM_OUTPUT" # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/at-spi2-core/COPYING