Update package version to 1.57.0

This commit is contained in:
2025-09-19 16:11:39 +03:00
parent a7b0400216
commit c7f1168ae1
3 changed files with 20 additions and 15 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Gitlab repository
REPO="GNOME/pango"
# 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 -1
View File
@@ -1,6 +1,6 @@
name: pango name: pango
description: A library for layout and rendering of text description: A library for layout and rendering of text
version: 1.56.1 version: 1.57.0
url: https://www.pango.org/ url: https://www.pango.org/
license: LGPL2.1-or-later license: LGPL2.1-or-later
architecture: any architecture: any
+4 -14
View File
@@ -15,25 +15,15 @@ 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 --libdir=/usr/lib --buildtype=release --wrap-mode=nofallback -Dintrospection=enabled build
cd build meson compile -C build
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release --wrap-mode=nofallback -Dintrospection=enabled ..
ninja
}
# 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
ninja 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"
DESTDIR="$BPM_OUTPUT" ninja install
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/pango/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/pango/COPYING
} }