summaryrefslogtreecommitdiff
path: root/ruby/rbenv/rbenv.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2016-11-28 11:22:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-28 11:22:31 +0700
commite1c205fa883c99e0bc6e2e886f53807f6a50013e (patch)
tree76f62d31b09bff1ea2ddb0a6573d2da7f501d7a0 /ruby/rbenv/rbenv.SlackBuild
parent41756fa3b9a460376c3e6f5cf1b1a48780b22d90 (diff)
downloadslackbuilds-e1c205fa883c99e0bc6e2e886f53807f6a50013e.tar.gz
ruby/rbenv: Updated for version 1.1.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ruby/rbenv/rbenv.SlackBuild')
-rw-r--r--ruby/rbenv/rbenv.SlackBuild27
1 files changed, 10 insertions, 17 deletions
diff --git a/ruby/rbenv/rbenv.SlackBuild b/ruby/rbenv/rbenv.SlackBuild
index f41479a68b..33d0da0d99 100644
--- a/ruby/rbenv/rbenv.SlackBuild
+++ b/ruby/rbenv/rbenv.SlackBuild
@@ -24,8 +24,8 @@
PRGNAM=rbenv
-VERSION=${VERSION:-1.0.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,14 +62,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-if [ -e "$CWD/$PRGNAM-$VERSION.tar.gz" ] ; then
- tar xvf "$CWD/$PRGNAM-$VERSION.tar.gz"
-elif [ -e "$CWD/v$VERSION.tar.gz" ] ; then
- tar xvf "$CWD/v$VERSION.tar.gz"
-else
- echo "Source tarball not found - checked $PRGNAM-$VERSION.tar.gz and v$VERSION.tar.gz"
- exit 2
-fi
+tar xvf "$CWD/$PRGNAM-$VERSION.tar.gz"
cd $PRGNAM-$VERSION
@@ -83,15 +76,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cd src
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure
+(
+ cd src
-make
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ ./configure
-cd ..
+ make
+)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true