aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:39:07 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-03-26 22:39:07 -0500
commit1aafe439889a66b73fae264dd7d29289e9a9c497 (patch)
tree748f9d90504d7668cd3a3e18194d09f6070e9032 /development
parent4e92ed5ec7af89edf92c259c5b7813c2beefd83f (diff)
development/bashdb: Fixed VERSION string (s,-,_,g)
Thanks to B. Watson for the report. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/bashdb/bashdb.SlackBuild12
-rw-r--r--development/bashdb/bashdb.info2
2 files changed, 8 insertions, 6 deletions
diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild
index 00b9fd2b11f98..7e22961175513 100644
--- a/development/bashdb/bashdb.SlackBuild
+++ b/development/bashdb/bashdb.SlackBuild
@@ -27,11 +27,13 @@
# readarray speeds up initial loading of large scripts.
PRGNAM=bashdb
-VERSION=4.0-0.4
+VERSION=4.0_0.4
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVER=$(printf $VERSION | tr _ -)
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -42,9 +44,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2
+cd $PRGNAM-$SRCVER
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -73,4 +75,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION/-/_}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/bashdb/bashdb.info b/development/bashdb/bashdb.info
index d166193326352..107f96a4a9abe 100644
--- a/development/bashdb/bashdb.info
+++ b/development/bashdb/bashdb.info
@@ -1,5 +1,5 @@
PRGNAM="bashdb"
-VERSION="4.0-0.4"
+VERSION="4.0_0.4"
HOMEPAGE="http://bashdb.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/bashdb/bashdb-4.0-0.4.tar.bz2"
MD5SUM="eb411b64d27ccbd0093789e9e945a589"