diff options
author | Andre Barboza <bmg.andre@gmail.com> | 2010-12-29 00:56:56 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-29 01:08:50 -0600 |
commit | 679bfeebbe9f78cd821d7eb8b49f7f3a1874be73 (patch) | |
tree | 76f846d161b79ff118f68923807c25a5e1d39c83 /development/netbeans/netbeans.SlackBuild | |
parent | 0384cac8bb207254b9a98f8438d029da762dfb0e (diff) |
development/netbeans: Updated with new maintainer info
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/netbeans/netbeans.SlackBuild')
-rw-r--r-- | development/netbeans/netbeans.SlackBuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/development/netbeans/netbeans.SlackBuild b/development/netbeans/netbeans.SlackBuild index 02cb71f9ffa00..14b40efdf39b7 100644 --- a/development/netbeans/netbeans.SlackBuild +++ b/development/netbeans/netbeans.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Slackware build script for netbeans +# Slackware build script for Netbeans IDE # Copyright (c) 2008-2009, Antonio Hernández Blas <hba.nihilismus@gmail.com> # All rights reserved. @@ -23,16 +23,19 @@ # This script is just a binary repackaging. +# Updated by Andre Barboza <bmg.andre@gmail.com> + PRGNAM=netbeans VERSION=6.9.1 DATE="201007282301" -ARCH=i586 +ARCH=noarch +BUNDLE= BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/package-${PRGNAM}${BUNDLE} OUTPUT=${OUTPUT:-/tmp} set -e @@ -40,7 +43,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG/opt $OUTPUT cd $PKG/opt -unzip -o $CWD/$PRGNAM-$VERSION-$DATE-ml.zip +unzip -o $CWD/$PRGNAM-$VERSION-$DATE-ml${BUNDLE}.zip chown -R root:root . find . \ @@ -49,6 +52,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +test $PRGNAM != ${PRGNAM}${BUNDLE} && mv $PRGNAM ${PRGNAM}${BUNDLE} && PRGNAM=${PRGNAM}${BUNDLE} + # Add netbeans to KDE/GNOME/XFCE menu install -D -m 0644 $CWD/$PRGNAM.desktop \ $PKG/usr/share/applications/$PRGNAM.desktop @@ -58,12 +63,12 @@ install -D -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # Add an script to call netbeans from /usr/bin. mkdir -p $PKG/usr/bin -cat <<- EOF > $PKG/usr/bin/netbeans +cat <<- EOF > $PKG/usr/bin/$PRGNAM #!/bin/sh cd \$HOME -/opt/netbeans/bin/netbeans \$@ +/opt/$PRGNAM/bin/netbeans \$@ EOF -chmod 0755 $PKG/usr/bin/netbeans +chmod 0755 $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 |