aboutsummaryrefslogtreecommitdiff
path: root/development/netbeans/netbeans.SlackBuild
diff options
context:
space:
mode:
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 05b8fbd0dbafc..316bfe4a93f5c 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}