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