summaryrefslogtreecommitdiffstats
path: root/development/eclipse-cpp/eclipse-cpp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/eclipse-cpp/eclipse-cpp.SlackBuild')
-rw-r--r--development/eclipse-cpp/eclipse-cpp.SlackBuild25
1 files changed, 16 insertions, 9 deletions
diff --git a/development/eclipse-cpp/eclipse-cpp.SlackBuild b/development/eclipse-cpp/eclipse-cpp.SlackBuild
index 30c85fd50f..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.15}
-SRCVERSION=${SRCVERSION:-2020-03-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 be 'x86_64'
-if [ "$ARCH" = "x86_64" ]; then
- tar --strip-components=1 -xvf $CWD/$PRGNAM-$SRCVERSION-incubation-linux-gtk-$ARCH.tar.gz
+# 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