xap/netbeans: Added netbeans-6.8.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent d0e1fa3b71
commit 1d56f37d5c
  1. 15
      xap/netbeans/doinst.sh
  2. 1
      xap/netbeans/netbeans-6.8-200912041610-ml-javase.zip.sha1
  3. 107
      xap/netbeans/netbeans.SlackBuild
  4. 9
      xap/netbeans/netbeans.desktop
  5. BIN
      xap/netbeans/netbeans.png
  6. 3
      xap/netbeans/netbeans.sh
  7. 12
      xap/netbeans/slack-desc

@ -0,0 +1,15 @@
#!/bin/sh
config()
{
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
rm $NEW
fi
}
config opt/netbeans/etc/netbeans.clusters.new
config opt/netbeans/etc/netbeans.conf.new
config opt/netbeans/etc/netbeans.import.new

@ -0,0 +1 @@
55728f959cc7728a16612db4760dc99777eebec9 netbeans-6.8-200912041610-ml-javase.zip

@ -0,0 +1,107 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest netbeans sourcecode is available at: <http://netbeans.org>.
# Source package infos
NAMESRC=${NAMESRC:-netbeans}
VERSION=${VERSION:-6.8}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-200912041610-ml-javase.zip}
WGET=${WGET:-http://ftp.snt.utwente.nl/pub/software/netbeans/6.8/zip/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-netbeans}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exist or is not a directory!"
exit 1
fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
# Extract an install
mkdir -p $PKG/opt
cd $PKG/opt
unzip $CWD/$ARCHIVE
# Remove Windows executables and libraries
find . \( -name '*.exe' -o -name '*.dll' \) -delete
# Add desktop files and launcher script
mkdir -p $PKG/usr/share/{applications,pixmaps} $PKG/usr/bin
install -m 0644 $CWD/netbeans.desktop $PKG/usr/share/applications
install -m 0644 $CWD/netbeans.png $PKG/usr/share/pixmaps
install -m 0755 $CWD/netbeans.sh $PKG/usr/bin/netbeans
# Protect existing config files
for f in clusters conf import ; do
mv $PKG/opt/netbeans/etc/netbeans.$f \
$PKG/opt/netbeans/etc/netbeans.$f.new
done
# Install documentations
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 netbeans/CREDITS.html netbeans/README.html netbeans/*.txt \
$PKG/usr/doc/$NAMEPKG-$VERSION
rm netbeans/*.html netbeans/*.txt
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -D -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Exec=netbeans
Name=Netbeans
GenericName=NetBeans IDE
Comment=IDE for Java
Icon=netbeans
StartupNotify=true
Categories=Qt;KDE;GNOME;Development;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,3 @@
#!/bin/sh
cd /opt/netbeans/bin
./netbeans $@

@ -0,0 +1,12 @@
|-----handy-ruler-----------------------------------------------------|
netbeans: netbeans (Free Java IDE)
netbeans:
netbeans: NetBeans IDE is a modular, standards-based integrated development
netbeans: environment (IDE), written in the Java programming language. The
netbeans: NetBeans project consists of a full-featured open source IDE and a
netbeans: rich client application framework which can be used as a generic
netbeans: framework to build any kind of application.
netbeans:
netbeans:
netbeans:
netbeans:
Loading…
Cancel
Save