summaryrefslogtreecommitdiff
path: root/ruby/rbenv/rbenv.SlackBuild
diff options
context:
space:
mode:
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