aboutsummaryrefslogtreecommitdiff
path: root/ruby/ruby2/ruby2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/ruby2/ruby2.SlackBuild')
-rw-r--r--ruby/ruby2/ruby2.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/ruby/ruby2/ruby2.SlackBuild b/ruby/ruby2/ruby2.SlackBuild
index 160bf5f395b06..8822596a6e0fe 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 .