diff options
Diffstat (limited to 'development/gitlab-cli/gitlab-cli.SlackBuild')
-rw-r--r-- | development/gitlab-cli/gitlab-cli.SlackBuild | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/development/gitlab-cli/gitlab-cli.SlackBuild b/development/gitlab-cli/gitlab-cli.SlackBuild index 1fc321c3665e8..eb891f4d26309 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 \ |