From 9ae253b5286811dca9210b2d971c036a0db66846 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 16 Sep 2025 19:55:21 +0300 Subject: [PATCH] Update package version to 3.24.10 --- check-version.sh | 12 ++++++++++++ pkg.info | 2 +- source.sh | 11 ++++------- 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..497e0c3 --- /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 '^3.' | head -n1) + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index fdb0ff9..341a39c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: gtkmm3 description: The official C++ interface for the popular GUI library GTK -version: 3.24.8 +version: 3.24.10 url: https://www.gtkmm.org/ license: LGPL2.1-or-later architecture: any diff --git a/source.sh b/source.sh index 402fb6e..dcfa431 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 .. - ninja + meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release 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 }