aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiniz Bortolotto <diniz.bortolotto@gmail.com>2024-10-24 00:56:09 -0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-24 11:32:35 +0700
commita76e630aa65e93fbeae6db771cd3e7623c892500 (patch)
tree8be3a5011326da2ca5f4b53df387904ab533ca24
parent8659506f1b4fa046d2da1dce0c3b24ce7975f48e (diff)
development/gitlab-cli: Updated for version 1.48.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/gitlab-cli/gitlab-cli.SlackBuild19
-rw-r--r--development/gitlab-cli/gitlab-cli.info18
2 files changed, 17 insertions, 20 deletions
diff --git a/development/gitlab-cli/gitlab-cli.SlackBuild b/development/gitlab-cli/gitlab-cli.SlackBuild
index 1fc321c3665e..eb891f4d2630 100644
--- a/development/gitlab-cli/gitlab-cli.SlackBuild
+++ b/development/gitlab-cli/gitlab-cli.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gitlab-cli
DEBNAM=glab
-VERSION=${VERSION:-1.46.1}
+VERSION=${VERSION:-1.48.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,15 +39,12 @@ if [ -z "$ARCH" ]; then
esac
fi
-if [ "$ARCH" = "arm" ] && [ -z "$DEBARCH" ]; then
- echo "Download .deb package at:"
- echo -n "https://gitlab.com/gitlab-org/cli/-/releases/"
- echo "v"$VERSION"/downloads/glab_"$VERSION"_Linux_"$( uname -m )".deb"
- echo "and call SlackBuild doing: DEBARCH="$( uname -m )" $0"
-elif [ "$ARCH" = "i586" ]; then
- DEBARCH="i386"
-elif [ "$ARCH" = "x86_64" ]; then
- DEBARCH="x86_64"
+if [ -z "$DEBARCH" ]; then
+ case $ARCH in
+ i586) DEBARCH="386" ;;
+ arm) DEBARCH="$( uname -m )" ;;
+ *) DEBARCH="amd64" ;;
+ esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
@@ -65,7 +62,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/${DEBNAM}_${VERSION}_Linux_${DEBARCH}.deb data.tar.gz | tar xzv
+ar p $CWD/${DEBNAM}_${VERSION}_linux_${DEBARCH}.deb data.tar.gz | tar xzv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
diff --git a/development/gitlab-cli/gitlab-cli.info b/development/gitlab-cli/gitlab-cli.info
index d0dfca6f942d..cd0e78d50f56 100644
--- a/development/gitlab-cli/gitlab-cli.info
+++ b/development/gitlab-cli/gitlab-cli.info
@@ -1,14 +1,14 @@
PRGNAM="gitlab-cli"
-VERSION="1.46.1"
+VERSION="1.48.0"
HOMEPAGE="https://gitlab.com/gitlab-org/cli"
-DOWNLOAD="https://gitlab.com/gitlab-org/cli/-/archive/v1.46.1/cli-v1.46.1.tar.gz \
- https://gitlab.com/gitlab-org/cli/-/releases/v1.46.1/downloads/glab_1.46.1_Linux_i386.deb"
-MD5SUM="9e3928d629439d381e58af81a1fd1770 \
- e37a413c0d5b0e899730ac6e805f53b9"
-DOWNLOAD_x86_64="https://gitlab.com/gitlab-org/cli/-/archive/v1.46.1/cli-v1.46.1.tar.gz \
- https://gitlab.com/gitlab-org/cli/-/releases/v1.46.1/downloads/glab_1.46.1_Linux_x86_64.deb"
-MD5SUM_x86_64="9e3928d629439d381e58af81a1fd1770 \
- 559882e7f321a58514c0b8ecc41957a4"
+DOWNLOAD="https://gitlab.com/gitlab-org/cli/-/archive/v1.48.0/cli-v1.48.0.tar.gz \
+ https://gitlab.com/gitlab-org/cli/-/releases/v1.48.0/downloads/glab_1.48.0_linux_386.deb"
+MD5SUM="8e3bcb1546cbce684696da2e8f356ce8 \
+ 465a628be5439e8cc69cac61b9ff7c10"
+DOWNLOAD_x86_64="https://gitlab.com/gitlab-org/cli/-/archive/v1.48.0/cli-v1.48.0.tar.gz \
+ https://gitlab.com/gitlab-org/cli/-/releases/v1.48.0/downloads/glab_1.48.0_linux_amd64.deb"
+MD5SUM_x86_64="8e3bcb1546cbce684696da2e8f356ce8 \
+ 50eb224f1a252ed0188f8c666ee34be5"
REQUIRES=""
MAINTAINER="Diniz Bortolotto"
EMAIL="diniz.bortolotto@gmail.com"