summaryrefslogtreecommitdiff
path: root/system/bootchart/bootchart.SlackBuild
diff options
context:
space:
mode:
authorMarco Cecchetti <mrc.ildp@gmail.com>2010-05-13 00:39:44 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:39:44 +0200
commitf488907e3a9f6e6239290b1a74343347ce070c12 (patch)
tree722297478cb7f3b807b329ee076b078234d81b7c /system/bootchart/bootchart.SlackBuild
parent8b34488c142c5fefc60e2483fc9503ba0709d8e8 (diff)
downloadslackbuilds-f488907e3a9f6e6239290b1a74343347ce070c12.tar.gz
system/bootchart: Updated for version 0.9
Diffstat (limited to 'system/bootchart/bootchart.SlackBuild')
-rw-r--r--system/bootchart/bootchart.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/system/bootchart/bootchart.SlackBuild b/system/bootchart/bootchart.SlackBuild
index e55632f12a..b72b1c0eec 100644
--- a/system/bootchart/bootchart.SlackBuild
+++ b/system/bootchart/bootchart.SlackBuild
@@ -4,12 +4,12 @@
# Written by Marco Cecchetti (mrc.ildp@gmail.com)
-# This is free software. It cames with no warranties.
+# This is free software. It comes with no warranties.
PRGNAM=bootchart
VERSION=${VERSION:-0.9}
-ARCH=${ARCH:-noarch}
-BUILD=${BUILD:-1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -17,6 +17,12 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
set -e
rm -rf $PKG
@@ -40,7 +46,7 @@ cp bootchart.jar $PKG/usr/share/java/bootchart.jar
mkdir -p $PKG/usr/bin
cat << EOF > $PKG/usr/bin/$PRGNAM
#!/bin/sh
-PATH=$PATH:/usr/lib/java/bin
+PATH=\$PATH:/usr/lib${LIBDIRSUFFIX}/java/bin
exec java -jar /usr/share/java/bootchart.jar "\$@"
EOF
chmod 0755 $PKG/usr/bin/$PRGNAM
@@ -62,5 +68,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}