From 003385bd0ecbd58762f93456f6966ada04be6937 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Wed, 18 Mar 2020 07:43:00 +0700 Subject: development/eclipse-php: Updated for version 4.14. Signed-off-by: Willy Sudiarto Raharjo --- development/eclipse-php/eclipse-php.SlackBuild | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'development/eclipse-php/eclipse-php.SlackBuild') 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 # Update by: Andre Barboza # Update by: Andrew Clemons # 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 -- cgit v1.2.3