summaryrefslogtreecommitdiff
path: root/misc/biosdisk
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2013-11-24 10:57:17 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2013-11-24 19:23:44 +0700
commiteac6e03894e7960379e8a8e876b9d56a63d2dae0 (patch)
tree9f538077fa64ef7894360a0b55f6d20312c06717 /misc/biosdisk
parent10aa451825e126cb2dd4a7d34842f402f150be6e (diff)
downloadslackbuilds-eac6e03894e7960379e8a8e876b9d56a63d2dae0.tar.gz
system/biosdisk: Fix version handling in SlackBuild.
The full source version number was not reflected in the built package name. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/biosdisk')
-rw-r--r--misc/biosdisk/biosdisk.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc/biosdisk/biosdisk.SlackBuild b/misc/biosdisk/biosdisk.SlackBuild
index a67b008b83..b98f98fcc6 100644
--- a/misc/biosdisk/biosdisk.SlackBuild
+++ b/misc/biosdisk/biosdisk.SlackBuild
@@ -3,12 +3,13 @@
# Written by Michales Michaloudes korgie@gmail.com
PRGNAM=biosdisk
-VERSION=0.75
+VERSION=0.75_2
ARCH=noarch
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-SRC_VERSION=${VERSION}-2
+SRC_VERSION=$(echo $VERSION | tr _ -)
+VERSDIR=$(echo $VERSION | sed 's/_.*//')
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -20,9 +21,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSDIR
tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$VERSDIR
chown -R root:root .
chmod -R u+w,go+r-w,a-s .