summaryrefslogtreecommitdiff
path: root/development/netbeans
diff options
context:
space:
mode:
authorSukma Wardana <sukma.wardana@mail.com>2019-01-01 00:12:33 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-01-05 07:49:17 +0700
commit77b368a1dab5ba6ad46add7f54fc867f4d87957a (patch)
tree739044d9ac61a87e427f0bb5ec49307f185eb1e6 /development/netbeans
parenta9d5a019fea6f369db52d15f12b90e65e4ba5c5c (diff)
downloadslackbuilds-77b368a1dab5ba6ad46add7f54fc867f4d87957a.tar.gz
development/netbeans: Updated for version 10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/netbeans')
-rw-r--r--development/netbeans/README13
-rw-r--r--development/netbeans/doinst.sh11
-rw-r--r--development/netbeans/netbeans.SlackBuild35
-rw-r--r--development/netbeans/netbeans.desktop4
-rw-r--r--development/netbeans/netbeans.info6
-rw-r--r--development/netbeans/netbeans.sh3
-rw-r--r--development/netbeans/slack-desc4
7 files changed, 44 insertions, 32 deletions
diff --git a/development/netbeans/README b/development/netbeans/README
index 5855eb576e..78af32b2eb 100644
--- a/development/netbeans/README
+++ b/development/netbeans/README
@@ -1,14 +1,13 @@
-Apache NetBeans Integrated Development Environment (IDE) 9.0
+Apache NetBeans Integrated Development Environment (IDE)
-Apache NetBeans (incubating) 9.0 is the Apache NetBeans incubator
+Apache NetBeans (incubating) is the Apache NetBeans incubator
release of the NetBeans Java SE IDE, i.e., the NetBeans Platform that
underpins NetBeans IDE, together with all the features and tools
-applicable to general Java development - including Java Swing,
-JavaFX, and the support created specifically for Java 9,
+applicable to general Java development – including Java Swing,
+JavaFX, and the support created specifically for Java,
i.e., JShell, JLink, and Jigsaw.
NOTE:
-
****
UPGRADING: If you come across an error opening your projects,
check the files in the folder /opt/netbeans/etc.
@@ -16,6 +15,6 @@ NOTE:
them with new.
****
- Apache NetBeans 9.0 only supports Java SE and does not support
+ Apache NetBeans 9.0 only support Java SE and not support
Java EE / Jakarta EE. The process donating Java EE / Jakarta EE
- module for Apache NetBeans is still under way.
+ module for Apache NetBeans is still undergo.
diff --git a/development/netbeans/doinst.sh b/development/netbeans/doinst.sh
index 456719b781..47132aecc5 100644
--- a/development/netbeans/doinst.sh
+++ b/development/netbeans/doinst.sh
@@ -12,7 +12,16 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
config opt/netbeans/etc/netbeans.conf.new
config opt/netbeans/etc/netbeans.clusters.new
config opt/netbeans/etc/netbeans.import.new
-
diff --git a/development/netbeans/netbeans.SlackBuild b/development/netbeans/netbeans.SlackBuild
index 05b8fbd0db..316bfe4a93 100644
--- a/development/netbeans/netbeans.SlackBuild
+++ b/development/netbeans/netbeans.SlackBuild
@@ -21,17 +21,17 @@
# THE SOFTWARE.
PRGNAM=netbeans
-VERSION=${VERSION:-9.0}
+VERSION=${VERSION:-10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
-SRCNAM=incubating-netbeans-java-${VERSION}-bin
+PKGNAM=incubating-netbeans-${VERSION}-bin.zip
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -40,15 +40,15 @@ rm -rf ${PKG}
mkdir -p ${TMP} ${PKG}/opt ${OUTPUT}
cd ${PKG}/opt
-unzip -o ${CWD}/${SRCNAM}.zip
+unzip -o ${CWD}/${PKGNAM}
cd ${PRGNAM}
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Add apache netbeans to KDE/GNOME/XFCE menu
install -D -m 644 ${CWD}/${PRGNAM}.desktop \
@@ -58,7 +58,7 @@ install -D -m 644 ${CWD}/${PRGNAM}.desktop \
install -D -m 644 ${CWD}/${PRGNAM}.png ${PKG}/usr/share/pixmaps/${PRGNAM}.png
# Add script to call netbeans from /usr/bin
-install -D -m 755 ${CWD}/${PRGNAM} ${PKG}/usr/bin/${PRGNAM}
+install -D -m 755 ${CWD}/${PRGNAM}.sh ${PKG}/usr/bin/${PRGNAM}
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -71,15 +71,16 @@ mv $PKG/opt/$PRGNAM/etc/netbeans.clusters \
mv $PKG/opt/$PRGNAM/etc/netbeans.import \
$PKG/opt/$PRGNAM/etc/netbeans.import.new
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p ${PKG}/usr/doc/${PRGNAM}-${VERSION}
cp -a \
CREDITS.html DEPENDENCIES DISCLAIMER LICENSE NOTICE README.html \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ ${PKG}/usr/doc/${PRGNAM}-${VERSION}
+cat ${CWD}/${PRGNAM}.SlackBuild > \
+ ${PKG}/usr/doc/${PRGNAM}-${VERSION}/${PRGNAM}.SlackBuild
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+mkdir -p ${PKG}/install
+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}
+cd ${PKG}
+/sbin/makepkg -l y -c n ${OUTPUT}/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}
diff --git a/development/netbeans/netbeans.desktop b/development/netbeans/netbeans.desktop
index 7210604aef..73554bd1aa 100644
--- a/development/netbeans/netbeans.desktop
+++ b/development/netbeans/netbeans.desktop
@@ -1,9 +1,9 @@
[Desktop Entry]
-Version=1.0
+VERSION=1.0
Type=Application
Exec=netbeans
Name=NetBeans IDE
GenericName=Apache NetBeans IDE
Icon=netbeans
-StartupNotify=true
+StartupNotifiy=true
Categories=Development;IDE;Qt;KDE;GTK;GNOME;
diff --git a/development/netbeans/netbeans.info b/development/netbeans/netbeans.info
index 7af82b2c9f..01d4c560c5 100644
--- a/development/netbeans/netbeans.info
+++ b/development/netbeans/netbeans.info
@@ -1,8 +1,8 @@
PRGNAM="netbeans"
-VERSION="9.0"
+VERSION="10.0"
HOMEPAGE="https://netbeans.apache.org/"
-DOWNLOAD="https://www-eu.apache.org/dist/incubator/netbeans/incubating-netbeans-java/incubating-9.0/incubating-netbeans-java-9.0-bin.zip"
-MD5SUM="1057e2f4beea9467c511fe5cfa52a18b"
+DOWNLOAD="https://www-eu.apache.org/dist/incubator/netbeans/incubating-netbeans/incubating-10.0/incubating-netbeans-10.0-bin.zip"
+MD5SUM="8f8e8ff2396a13741d163d01be662c8e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jdk"
diff --git a/development/netbeans/netbeans.sh b/development/netbeans/netbeans.sh
new file mode 100644
index 0000000000..429b49acfb
--- /dev/null
+++ b/development/netbeans/netbeans.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd $HOME
+/opt/netbeans/bin/netbeans $@
diff --git a/development/netbeans/slack-desc b/development/netbeans/slack-desc
index d3685ecf2a..ef33acd04a 100644
--- a/development/netbeans/slack-desc
+++ b/development/netbeans/slack-desc
@@ -11,8 +11,8 @@ netbeans:
netbeans: Apache NetBeans is an integrated development environment (IDE) for
netbeans: writing, compiling, testing, and debugging software application for
netbeans: the Java platform and other environments. NetBeans IDE includes
-netbeans: full-featured text editor, visual deisgn tools, soruce code
-netbeans: management support, database integration tools, and mny other
+netbeans: full-featured text editor, visual deisgn tools, source code
+netbeans: management support, database integration tools, and many other
netbeans: features.
netbeans:
netbeans: Homepage: https://netbeans.apache.org/