diff options
Diffstat (limited to 'system/bootchart/bootchart.SlackBuild')
-rw-r--r-- | system/bootchart/bootchart.SlackBuild | 16 |
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} |