diff options
author | core <eroc@linuxmail.org> | 2010-05-11 20:00:27 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:27 +0200 |
commit | 1ffcd1f797bbc2a5feaece3f25b99901459a871f (patch) | |
tree | 6e50ccf625ac46d86c7e5dd983274103b56592d5 /development/netbeans | |
parent | 59574d7b80cd51b63065b13b2f25ddcc7b2b2e82 (diff) |
development/netbeans: Added to 12.0 repository
Diffstat (limited to 'development/netbeans')
-rw-r--r-- | development/netbeans/README | 26 | ||||
-rw-r--r-- | development/netbeans/doinst.sh | 4 | ||||
-rw-r--r-- | development/netbeans/netbeans.SlackBuild | 91 | ||||
-rw-r--r-- | development/netbeans/netbeans.desktop | 10 | ||||
-rw-r--r-- | development/netbeans/netbeans.info | 8 | ||||
-rw-r--r-- | development/netbeans/slack-desc | 19 |
6 files changed, 158 insertions, 0 deletions
diff --git a/development/netbeans/README b/development/netbeans/README new file mode 100644 index 0000000000000..11d581d473d39 --- /dev/null +++ b/development/netbeans/README @@ -0,0 +1,26 @@ +Netbeans - Free and Open-Source IDE for Java Development and More. + +The NetBeans IDE is a free, Open-Source Integrated Development +Environment for software developers. The IDE runs on many platforms +including Windows, Linux, Solaris, and the MacOS. The NetBeans IDE +provides developers with all the tools they need to create +professional cross-platform desktop, enterprise, web and mobile +applications. + +NOTE: +You can make a localised package with this SlackBuild +(default is english). For example: + +To get netbeans in Spanish - Espaņol (es) : +1. Go to: http://www.netbeans.info/downloads/all.php?b_id=3095 +2. Under "Archive Distributions", download the package: + netbeans-5_5_1-es.zip +3. Execute the slackbuild as: + NBLANG=es ./netbeans.SlackBuild + to get this package in /tmp: netbeans-5.5.1_es-i586-1_SBo.tgz + +Other values for NBLANG could be: ja, pt_BR, zh_CN, de and zh_TW + +This SlackBuild was tested with "es" and "pt_BR" and with default +language(english) so if it serves to you for the other values it's +a good idea to send feedback about it :) diff --git a/development/netbeans/doinst.sh b/development/netbeans/doinst.sh new file mode 100644 index 0000000000000..f3640758961a9 --- /dev/null +++ b/development/netbeans/doinst.sh @@ -0,0 +1,4 @@ +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database -q usr/share/applications +fi + diff --git a/development/netbeans/netbeans.SlackBuild b/development/netbeans/netbeans.SlackBuild new file mode 100644 index 0000000000000..d2d3222a51cbf --- /dev/null +++ b/development/netbeans/netbeans.SlackBuild @@ -0,0 +1,91 @@ +#!/bin/sh + +# Slackware build script for netbeans +# Written by core (eroc@linuxmail.org) +# Modified by Robby Workman + +# This script is just a binary repackaging. +# You can make a localised package with this SlackBuild +# (default is english). For example: +# +# To get netbeans in Spanish - Espaņol (es) : +# 1).- Go to: http://www.netbeans.info/downloads/all.php?b_id=3095 +# 2).- Under "Archive Distributions", download the package: +# netbeans-5_5_1-es.zip +# 3).- Execute the slackbuild as: +# NBLANG=es ./netbeans.SlackBuild +# to finally get in /tmp: netbeans-5.5.1_es-i586-1_SBo.tgz +# +# Other values for NBLANG could be: ja, pt_BR, zh_CN, de and zh_TW +# +# This SlackBuild was tested with "es" and "pt_BR" and with default +# language (English) so if it works for you with the other values, +# it's a good idea to send feedback about it :) + +set -e + +PRGNAM=netbeans +VERSION=5.5.1 +VERSIONALT='5_5_1' +ARCH=i586 # Leave this alone +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION + +# If NBLANG has a value: +if [ ! -z $NBLANG ]; then + NBLANGSRC="-$NBLANG" # For the sourcecode + NBLANGPKG="_$NBLANG" # For the final package + NBLANGLOC=$(echo "--locale $NBLANG" | sed 's/_/:/') # To netbeans's locale. +fi + +unzip $CWD/$PRGNAM-$VERSIONALT${NBLANGSRC}.zip || exit 1 +mv $PRGNAM $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir $PKG/opt +cp -R $TMP/$PRGNAM-$VERSION $PKG/opt + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +# Add netbeans to KDE/GNOME/XFCE menu +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +# Add an icon for netbeans +mkdir -p $PKG/usr/share/pixmaps +cp $TMP/$PRGNAM-$VERSION/nb5.5/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +# Add a script to call netbeans from usr/bin. +mkdir -p $PKG/usr/bin +cat <<- EOF > $PKG/usr/bin/$PRGNAM +#!/bin/sh +cd /opt/$PRGNAM-$VERSION/bin +./$PRGNAM $NBLANGLOC +EOF +chmod 0755 $PKG/usr/bin/$PRGNAM + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a build_info CREDITS* DISTRIBUTION.txt LICENSE.txt \ + netbeans.css README* THIRDPARTYLICENSE.txt $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 + +cd $PKG +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION$NBLANGPKG-$ARCH-$BUILD$TAG.tgz diff --git a/development/netbeans/netbeans.desktop b/development/netbeans/netbeans.desktop new file mode 100644 index 0000000000000..cc4c65365b811 --- /dev/null +++ b/development/netbeans/netbeans.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Exec=netbeans +Name=Netbeans +GenericName=NetBeans IDE +Comment=IDE for Java +Icon=netbeans +StartupNotify=true +Categories=Qt;KDE;Development;GNOME;Application;Development; diff --git a/development/netbeans/netbeans.info b/development/netbeans/netbeans.info new file mode 100644 index 0000000000000..c38f72e4a77d4 --- /dev/null +++ b/development/netbeans/netbeans.info @@ -0,0 +1,8 @@ +PRGNAM="netbeans" +VERSION="5.5.1" +HOMEPAGE="http://www.netbeans.org" +DOWNLOAD="http://dlc.sun.com/netbeans/download/5_5_1/fcs/200704122300/netbeans-5_5_1.zip" +MD5SUM="64eb5495dd4a9def5bc80ed28557eac7" +MAINTAINER="core" +EMAIL="eroc@linuxmail.org" +APPROVED="rworkman" diff --git a/development/netbeans/slack-desc b/development/netbeans/slack-desc new file mode 100644 index 0000000000000..83412e328b5b5 --- /dev/null +++ b/development/netbeans/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +netbeans: Netbeans (Free and Open-Source IDE for Java Development and More) +netbeans: +netbeans: The NetBeans IDE is a free, Open-Source Integrated Development +netbeans: Environment for software developers. The IDE runs on many platforms +netbeans: including Windows, Linux, Solaris, and the MacOS. The NetBeans IDE +netbeans: provides developers with all the tools they need to create +netbeans: professional cross-platform desktop, enterprise, web and mobile +netbeans: applications. +netbeans: +netbeans: Homepage: http://www.netbeans.org +netbeans: |