development/netbeans: Updated for version 6.7.1

This commit is contained in:
Antonio Hernández Blas 2010-05-13 00:25:02 +02:00 committed by Robby Workman
parent bee1a0001e
commit 88b000b53f
5 changed files with 39 additions and 32 deletions

View File

@ -16,4 +16,6 @@ NOTES:
into the line #6(netbeans_default_options) in the file
/opt/netbeans/etc/netbeans.conf
GlassFish and Apache Tomcat are not available in this package.
GlassFish and Apache Tomcat are not available in this package.
Also note that this is not available for x86_64.

View File

@ -1,5 +1,3 @@
#!/bin/sh
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
@ -13,14 +11,21 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
config opt/netbeans/etc/netbeans.conf.new
config opt/netbeans/etc/netbeans.clusters.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications 2>/dev/null
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
config opt/netbeans/etc/netbeans.conf.new
config opt/netbeans/etc/netbeans.clusters.new
config opt/netbeans/etc/netbeans.import.new

View File

@ -2,7 +2,7 @@
# Slackware build script for netbeans
# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# Copyright (c) 2008-2009, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -24,9 +24,9 @@
# This script is just a binary repackaging.
PRGNAM=netbeans
VERSION=6.5.1
DATE="200903060201"
ARCH=i586 # Leave this alone
VERSION=6.7.1
DATE="200907230233"
ARCH=i586
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -39,48 +39,46 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG/opt $OUTPUT
cd $TMP
rm -rf $PRGNAM
cd $PKG/opt
unzip -o $CWD/$PRGNAM-$VERSION-$DATE-ml.zip
cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Move the netbeans directory to $PKG/opt
cd $TMP
mv $PRGNAM $PKG/opt
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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
install -D -m 0644 $CWD/$PRGNAM.desktop \
$PKG/usr/share/applications/$PRGNAM.desktop
# Add an icon for netbeans
install -D -m 0644 $PKG/opt/$PRGNAM/nb6.5/$PRGNAM.png \
$PKG/usr/share/pixmaps/$PRGNAM.png
install -D -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# Add a script to call netbeans from /usr/bin.
# Add an script to call netbeans from /usr/bin.
mkdir -p $PKG/usr/bin
cat <<- EOF > $PKG/usr/bin/netbeans
#!/bin/sh
cd /opt/netbeans/bin
./netbeans "\$@"
./netbeans \$@
EOF
chmod 0755 $PKG/usr/bin/netbeans
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
# Don't clobber any existing config file
mv $PKG/opt/$PRGNAM/etc/netbeans.conf \
$PKG/opt/$PRGNAM/etc/netbeans.conf.new
mv $PKG/opt/$PRGNAM/etc/netbeans.clusters \
$PKG/opt/$PRGNAM/etc/netbeans.clusters.new
mv $PKG/opt/$PRGNAM/etc/netbeans.import \
$PKG/opt/$PRGNAM/etc/netbeans.import.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/opt/$PRGNAM
@ -92,4 +90,4 @@ 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-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,10 @@
PRGNAM="netbeans"
VERSION="6.5.1"
VERSION="6.7.1"
HOMEPAGE="http://www.netbeans.org"
DOWNLOAD="http://download.netbeans.org/netbeans/sync/6.5.1/zip/netbeans-6.5.1-200903060201-ml.zip"
MD5SUM="44e38f746716ca571c42045e59560c6a"
DOWNLOAD="http://download.netbeans.org/netbeans/sync/6.7.1/zip/netbeans-6.7.1-200907230233-ml.zip"
MD5SUM="b933d91549042c280e96e1c602ccae31"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""
MAINTAINER="Antonio Hernández Blas"
EMAIL="hba.nihilismus@gmail.com"
APPROVED="dsomero"
APPROVED="rworkman"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB