Update package version to 0.14.6

This commit is contained in:
2025-09-16 11:52:00 +03:00
parent 755efdcc17
commit 5419ae0c20
3 changed files with 20 additions and 13 deletions
+15
View File
@@ -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"
+1 -2
View File
@@ -1,7 +1,6 @@
name: gexiv2 name: gexiv2
description: GObject wrapper around the Exiv2 photo metadata library description: GObject wrapper around the Exiv2 photo metadata library
version: 0.14.3 version: 0.14.6
revision: 2
url: https://gitlab.gnome.org/GNOME/gexiv2 url: https://gitlab.gnome.org/GNOME/gexiv2
license: GPL2-or-later license: GPL2-or-later
architecture: any architecture: any
+4 -11
View File
@@ -15,27 +15,20 @@ prepare() {
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build meson setup --prefix=/usr --buildtype=release -Dtests=true build
cd build meson compile -C build
meson setup --prefix=/usr --buildtype=release -Dtests=true ..
meson compile
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
cd build meson test -C build --print-errorlogs
meson test
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build meson install -C build --destdir="$BPM_OUTPUT"
meson install --destdir="$BPM_OUTPUT"
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gexiv2/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gexiv2/COPYING
} }