Update package version to 0.12.2
This commit is contained in:
+8
-8
@@ -1,15 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Git repository
|
||||
REPO="https://git.libssh.org/projects/libssh.git"
|
||||
# Gitlab repository
|
||||
REPO="libssh/libssh-mirror"
|
||||
|
||||
# Get tag name using 'git ls-remote'
|
||||
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep 'libssh-' | tail -1)
|
||||
# Replace slash with URL encoded representation
|
||||
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
||||
|
||||
# Remove prefix
|
||||
# Get tag name using Gitlab Rest API
|
||||
TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
|
||||
|
||||
# Trim prefix
|
||||
VERSION=${TAG_NAME//libssh-/}
|
||||
|
||||
# Replace '-' with '.'
|
||||
VERSION=${VERSION//-/.}
|
||||
|
||||
echo "$VERSION"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: libssh
|
||||
description: Library for accessing ssh client services through C libraries
|
||||
version: 0.12.0
|
||||
revision: 2
|
||||
version: 0.12.2
|
||||
revision: 1
|
||||
url: https://libssh.org/
|
||||
license: LGPL2.1-or-later
|
||||
maintainers:
|
||||
@@ -22,4 +22,4 @@ downloads:
|
||||
- url: https://www.libssh.org/files/${BPM_PKG_VERSION%.*}/libssh-${BPM_PKG_VERSION}.tar.xz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 1a6af424d8327e5eedef4e5fe7f5b924226dd617ac9f3de80f217d82a36a7121
|
||||
checksum: 49560f677d96e3706a904ac2de1116e25f3680937d51e5c92198fcba4a1c1e9f
|
||||
|
||||
Reference in New Issue
Block a user