diff options
Diffstat (limited to 'academic/jpicedt/jpicedt.SlackBuild')
-rw-r--r-- | academic/jpicedt/jpicedt.SlackBuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/academic/jpicedt/jpicedt.SlackBuild b/academic/jpicedt/jpicedt.SlackBuild index fb9095710d..11e8668137 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} |