From 41edae6375d4f13e1bc628227a35cab5e5df1ab3 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 16 Sep 2025 20:03:28 +0300 Subject: [PATCH] Update package version to 4.19.1 --- check-version.sh | 12 ++++++++++++ pkg.info | 3 +-- source.sh | 11 ++++------- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..237e5bb --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="GNOME/gtkmm" + +# 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 | jq -r '.[].tag_name' | grep '^4.' | head -n1) + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index 7677ce1..cd089a2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: gtkmm4 description: The official C++ interface for the popular GUI library GTK (version 4) -version: 4.16.0 -revision: 2 +version: 4.19.1 url: https://www.gtkmm.org/ license: LGPL2.1-or-later architecture: any diff --git a/source.sh b/source.sh index 84a5658..50f8429 100644 --- a/source.sh +++ b/source.sh @@ -15,19 +15,16 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir gtkmm3-build - cd gtkmm3-build - - meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dmaintainer-mode=false .. - ninja + meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Dmaintainer-mode=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 gtkmm3-build - DESTDIR="$BPM_OUTPUT" ninja install + meson install -C build --destdir="$BPM_OUTPUT" + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING.tools "$BPM_OUTPUT"/usr/share/licenses/gtkmm3/COPYING.tools install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gtkmm3/COPYING }