aboutsummaryrefslogtreecommitdiff
path: root/academic/jpicedt/jpicedt.SlackBuild
diff options
context:
space:
mode:
authorRobert Allen <slacker@slaphappygeeks.com>2010-05-13 00:20:06 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:20:06 +0200
commitfbbff75475642643a58cf8be8d0d576e81a61339 (patch)
tree424e7fc04c193146c05c37c7bffff3c3dc5e7342 /academic/jpicedt/jpicedt.SlackBuild
parentfd6918fcbe5a3595656ce44f7ddbb0aae87615b6 (diff)
academic/jpicedt: Updated for version 1.4.1_03_20071021
Diffstat (limited to 'academic/jpicedt/jpicedt.SlackBuild')
-rw-r--r--academic/jpicedt/jpicedt.SlackBuild18
1 files changed, 15 insertions, 3 deletions
diff --git a/academic/jpicedt/jpicedt.SlackBuild b/academic/jpicedt/jpicedt.SlackBuild
index fb9095710da91..11e8668137088 100644
--- a/academic/jpicedt/jpicedt.SlackBuild
+++ b/academic/jpicedt/jpicedt.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=jpicedt
VERSION=${VERSION:-1.4.1_03}
-ARCH=i486
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -31,6 +31,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -43,7 +54,8 @@ unzip $CWD/jpicedt-install_1_4_1_03_20071021.jar -d $PKG/opt/$PRGNAM-$VERSION
# Install a wrapper script to start jpicedit
mkdir -p $PKG/usr/bin
-cp $CWD/jpicedt.sh $PKG/usr/bin/jpicedt
+sed -e "s|/usr/lib/java|/usr/lib$LIBDIRSUFFIX/java|" \
+ $CWD/jpicedt.sh > $PKG/usr/bin/jpicedt
chmod 755 $PKG/usr/bin/jpicedt
# Remove META-INF/, installer/, windows addons from the package
@@ -62,4 +74,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
chown -R root:root .
-/sbin/makepkg -c n -l y $OUTPUT/${PRGNAM}-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -c n -l y $OUTPUT/${PRGNAM}-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}