mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/netbeans: Added to 12.0 repository
This commit is contained in:
parent
59574d7b80
commit
1ffcd1f797
6 changed files with 158 additions and 0 deletions
26
development/netbeans/README
Normal file
26
development/netbeans/README
Normal file
|
@ -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 :)
|
4
development/netbeans/doinst.sh
Normal file
4
development/netbeans/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ -x usr/bin/update-desktop-database ]; then
|
||||
usr/bin/update-desktop-database -q usr/share/applications
|
||||
fi
|
||||
|
91
development/netbeans/netbeans.SlackBuild
Normal file
91
development/netbeans/netbeans.SlackBuild
Normal file
|
@ -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
|
10
development/netbeans/netbeans.desktop
Normal file
10
development/netbeans/netbeans.desktop
Normal file
|
@ -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;
|
8
development/netbeans/netbeans.info
Normal file
8
development/netbeans/netbeans.info
Normal file
|
@ -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"
|
19
development/netbeans/slack-desc
Normal file
19
development/netbeans/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue