summaryrefslogtreecommitdiffstats
path: root/development/eclipse-php/eclipse-php.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/eclipse-php/eclipse-php.SlackBuild')
-rw-r--r--development/eclipse-php/eclipse-php.SlackBuild30
1 files changed, 17 insertions, 13 deletions
diff --git a/development/eclipse-php/eclipse-php.SlackBuild b/development/eclipse-php/eclipse-php.SlackBuild
index dd4ee82561..5b16d8a7de 100644
--- a/development/eclipse-php/eclipse-php.SlackBuild
+++ b/development/eclipse-php/eclipse-php.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for eclipse-php
@@ -21,16 +21,20 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Update by: Igor Alexandrov <igora.vault@gmail.com>
# Update by: Andre Barboza <bmg.andre@gmail.com>
# Update by: Andrew Clemons <andrew.clemons@gmail.com>
# Modified from classical eclipse slackbuild
# This script is just a binary repackaging.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=eclipse-php
-VERSION=${VERSION:-201809}
-SRCVERSION=${SRCVERSION:-2018-09}
+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 +44,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,13 +59,11 @@ mkdir -p $TMP $PKG/opt/$PRGNAM $OUTPUT
cd $PKG/opt/$PRGNAM
# Untar source code tarball according with ARCH value
-# ARCH can be 'i586' or '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
-elif case "$ARCH" in i?86) true ;; *) false ;; esac ; then
- tar --strip-components=1 -xvf $CWD/$PRGNAM-$SRCVERSION-linux-gtk.tar.gz
else
- printf "$ARCH is not supported...\n"
+ printf "%s is not supported...\n" "$ARCH"
exit 1
fi
@@ -82,9 +88,7 @@ chmod 0755 $PKG/usr/bin/$PRGNAM
# Add eclipse to KDE/GNOME/XFCE menu and install an icon for them
install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
-ECLIPSE_ICON=$(find . -name "*eclipse48.png" | grep "org.eclipse.platform")
-install -D -m 0644 "$PKG/opt/$PRGNAM/${ECLIPSE_ICON}" \
- $PKG/usr/share/pixmaps/$PRGNAM.png
+install -D -m 0644 -t "$PKG/usr/share/pixmaps/" "$CWD/$PRGNAM.png"
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -103,4 +107,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