aboutsummaryrefslogtreecommitdiff
path: root/development/netbeans/netbeans.SlackBuild
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/netbeans.SlackBuild
parenta9d5a019fea6f369db52d15f12b90e65e4ba5c5c (diff)
development/netbeans: Updated for version 10.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/netbeans/netbeans.SlackBuild')
-rw-r--r--development/netbeans/netbeans.SlackBuild35
1 files changed, 18 insertions, 17 deletions
diff --git a/development/netbeans/netbeans.SlackBuild b/development/netbeans/netbeans.SlackBuild
index 05b8fbd0dbaf..316bfe4a93f5 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}