Update package version to 4.19.4
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gitlab repository
|
||||
REPO="GNOME/gtk"
|
||||
|
||||
# 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"/repository/tags | jq -r '.[].name' | grep -E '4.*' | head -n1)
|
||||
|
||||
# Trim '-gitlab' suffix
|
||||
TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g')
|
||||
|
||||
# Get version number from tag name
|
||||
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||
|
||||
# Trim 'v' character in VERSION variable
|
||||
VERSION=$(echo "$VERSION" | tr -d 'v')
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -1,7 +1,6 @@
|
||||
name: gtk4
|
||||
description: GObject-based multi-platform GUI toolkit version 4
|
||||
version: 4.16.12
|
||||
revision: 2
|
||||
version: 4.19.4
|
||||
url: https://www.gtk.org/
|
||||
license: LGPL2.1-or-later
|
||||
architecture: any
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://download.gnome.org/sources/gtk/${BPM_PKG_VERSION%.*}/gtk-${BPM_PKG_VERSION}.tar.xz"
|
||||
DOWNLOAD="https://gitlab.gnome.org/GNOME/gtk/-/archive/${BPM_PKG_VERSION}/gtk-${BPM_PKG_VERSION}.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
|
||||
Reference in New Issue
Block a user