diff options
Diffstat (limited to 'development/eclipse-cpp/eclipse-cpp.SlackBuild')
-rw-r--r-- | development/eclipse-cpp/eclipse-cpp.SlackBuild | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/development/eclipse-cpp/eclipse-cpp.SlackBuild b/development/eclipse-cpp/eclipse-cpp.SlackBuild index 35a6b970c8..6bae0ef11b 100644 --- a/development/eclipse-cpp/eclipse-cpp.SlackBuild +++ b/development/eclipse-cpp/eclipse-cpp.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for eclipse-cpp @@ -26,11 +26,14 @@ # Modified from classical eclipse slackbuild # This script is just a binary repackaging. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=eclipse-cpp -VERSION=${VERSION:-4.14} -SRCVERSION=${SRCVERSION:-2019-12-R} +VERSION=${VERSION:-4.31} +SRCVERSION=${SRCVERSION:-2024-03-R} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,7 +43,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -51,11 +58,11 @@ mkdir -p $TMP $PKG/opt/$PRGNAM $OUTPUT cd $PKG/opt/$PRGNAM # Untar source code tarball according with ARCH value -# ARCH can only 'x86_64' -if [ "$ARCH" = "x86_64" ]; then +# ARCH can only be 'x86_64' or 'aarch64' +if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ] ; then tar --strip-components=1 -xvf $CWD/$PRGNAM-$SRCVERSION-linux-gtk-$ARCH.tar.gz else - printf "$ARCH is not supported...\n" + printf "%s is not supported...\n" "$ARCH" exit 1 fi @@ -101,4 +108,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |