From 1aafe439889a66b73fae264dd7d29289e9a9c497 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 26 Mar 2012 22:39:07 -0500 Subject: development/bashdb: Fixed VERSION string (s,-,_,g) Thanks to B. Watson for the report. Signed-off-by: Robby Workman --- development/bashdb/bashdb.SlackBuild | 12 +++++++----- development/bashdb/bashdb.info | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'development') diff --git a/development/bashdb/bashdb.SlackBuild b/development/bashdb/bashdb.SlackBuild index 00b9fd2b11f9..7e2296117551 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 d16619332635..107f96a4a9ab 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" -- cgit v1.2.3