summaryrefslogtreecommitdiffstats
path: root/development/eclipse-php/eclipse-php.SlackBuild
diff options
context:
space:
mode:
author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>2020-03-18 07:43:00 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2020-03-18 07:43:00 +0700
commit003385bd0ecbd58762f93456f6966ada04be6937 (patch)
treeabd7d3ce4fc9ec286bf320165287417fc9008c5d /development/eclipse-php/eclipse-php.SlackBuild
parent76d73cec920e91426237a2a7cd3ed38c58798fb2 (diff)
downloadslackbuilds-003385bd0ecbd58762f93456f6966ada04be6937.tar.gz
slackbuilds-003385bd0ecbd58762f93456f6966ada04be6937.tar.xz
development/eclipse-php: Updated for version 4.14.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/eclipse-php/eclipse-php.SlackBuild')
-rw-r--r--development/eclipse-php/eclipse-php.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/development/eclipse-php/eclipse-php.SlackBuild b/development/eclipse-php/eclipse-php.SlackBuild
index dd4ee82561..bfde2c534a 100644
--- a/development/eclipse-php/eclipse-php.SlackBuild
+++ b/development/eclipse-php/eclipse-php.SlackBuild
@@ -21,14 +21,15 @@
# (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.
PRGNAM=eclipse-php
-VERSION=${VERSION:-201809}
-SRCVERSION=${SRCVERSION:-2018-09}
+VERSION=${VERSION:-4.14}
+SRCVERSION=${SRCVERSION:-2019-12-R}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,11 +52,9 @@ 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'
+# ARCH can only be 'x86_64'
if [ "$ARCH" = "x86_64" ]; 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"
exit 1
@@ -82,9 +81,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