summaryrefslogtreecommitdiff
path: root/ruby/ruby2
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/ruby2')
-rw-r--r--ruby/ruby2/ruby2.SlackBuild9
-rw-r--r--ruby/ruby2/ruby2.info2
2 files changed, 6 insertions, 5 deletions
diff --git a/ruby/ruby2/ruby2.SlackBuild b/ruby/ruby2/ruby2.SlackBuild
index 160bf5f395..8822596a6e 100644
--- a/ruby/ruby2/ruby2.SlackBuild
+++ b/ruby/ruby2/ruby2.SlackBuild
@@ -23,11 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ruby2
-VERSION=${VERSION:-2.0.0-p247}
+VERSION=${VERSION:-2.0.0_p247}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=ruby
+SRCVER=$(echo $VERSION | tr _ - )
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -57,9 +58,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-cd $SRCNAM-$VERSION
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
+cd $SRCNAM-$SRCVER
chown -R root:root .
chmod -R u+w,go+r-w,a-s+X .
diff --git a/ruby/ruby2/ruby2.info b/ruby/ruby2/ruby2.info
index c83b71ff03..81b3336adc 100644
--- a/ruby/ruby2/ruby2.info
+++ b/ruby/ruby2/ruby2.info
@@ -1,5 +1,5 @@
PRGNAM="ruby2"
-VERSION="2.0.0-p247"
+VERSION="2.0.0_p247"
HOMEPAGE="http://www.ruby-lang.org"
DOWNLOAD="http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz"
MD5SUM="c351450a0bed670e0f5ca07da3458a5b"