summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2013-07-05 01:56:15 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2013-07-07 09:11:57 -0300
commit0135bf83fbcfaab33962bdc404b8850202c14102 (patch)
tree2ec949a7a9a93ad9da762a75cfffa09c4f13532f /development
parentec918c74b128613feb0d335fa1e5c8354674e62c (diff)
downloadslackbuilds-0135bf83fbcfaab33962bdc404b8850202c14102.tar.gz
development/nexus: Fix VERSION string to not make a broken package
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/nexus/nexus.SlackBuild10
-rw-r--r--development/nexus/nexus.info2
2 files changed, 7 insertions, 5 deletions
diff --git a/development/nexus/nexus.SlackBuild b/development/nexus/nexus.SlackBuild
index 44687b4b1b..80379f409a 100644
--- a/development/nexus/nexus.SlackBuild
+++ b/development/nexus/nexus.SlackBuild
@@ -23,10 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nexus
-VERSION=${VERSION:-2.5.0-04}
+VERSION=${VERSION:-2.5.0_04}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVERSION=$(echo $VERSION | tr _ -)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -67,9 +69,9 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-bundle.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/$PRGNAM-$SRCVERSION-bundle.tar.gz
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/development/nexus/nexus.info b/development/nexus/nexus.info
index d9b25d013b..bf5c28da85 100644
--- a/development/nexus/nexus.info
+++ b/development/nexus/nexus.info
@@ -1,5 +1,5 @@
PRGNAM="nexus"
-VERSION="2.5.0-04"
+VERSION="2.5.0_04"
HOMEPAGE="http://nexus.sonatype.org"
DOWNLOAD="http://www.sonatype.org/downloads/nexus-2.5.0-04-bundle.tar.gz"
MD5SUM="9ba35b7b72c2e2eff87298b4c1e77a9a"