diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2012-03-26 22:39:07 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-03-26 22:39:07 -0500 |
commit | 1aafe439889a66b73fae264dd7d29289e9a9c497 (patch) | |
tree | 748f9d90504d7668cd3a3e18194d09f6070e9032 /development/bashdb/bashdb.SlackBuild | |
parent | 4e92ed5ec7af89edf92c259c5b7813c2beefd83f (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/bashdb/bashdb.SlackBuild')
-rw-r--r-- | development/bashdb/bashdb.SlackBuild | 12 |
1 files changed, 7 insertions, 5 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} |