From 5419ae0c205f9a6018aa4ff0ad347efbeb46cacc Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 16 Sep 2025 11:52:00 +0300 Subject: [PATCH] Update package version to 0.14.6 --- check-version.sh | 15 +++++++++++++++ pkg.info | 3 +-- source.sh | 15 ++++----------- 3 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..47d4863 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Gitlab repository +REPO="GNOME/gexiv2" + +# 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') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 3fe83a4..a1bd308 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: gexiv2 description: GObject wrapper around the Exiv2 photo metadata library -version: 0.14.3 -revision: 2 +version: 0.14.6 url: https://gitlab.gnome.org/GNOME/gexiv2 license: GPL2-or-later architecture: any diff --git a/source.sh b/source.sh index 12a18b5..e07a733 100644 --- a/source.sh +++ b/source.sh @@ -15,27 +15,20 @@ 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 --buildtype=release -Dtests=true .. - meson compile + meson setup --prefix=/usr --buildtype=release -Dtests=true build + 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() { - cd build - - meson test + 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() { - cd build - - meson install --destdir="$BPM_OUTPUT" + meson install -C build --destdir="$BPM_OUTPUT" install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gexiv2/COPYING }