aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-02-01 10:17:36 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-04 06:59:32 +0700
commit7eba1da5984198a4c6317e5d9075b1a604e46a2c (patch)
tree461e6b4cc21fbbfe785d0c7e5e0f55beb9871e82
parentd63cc2cc24043e664c8f200005ecbdd63cee5c9b (diff)
ruby/ruby-faraday: Minor SlackBuild changes.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--ruby/ruby-faraday/ruby-faraday.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/ruby/ruby-faraday/ruby-faraday.SlackBuild b/ruby/ruby-faraday/ruby-faraday.SlackBuild
index 4f39c2b31bea0..05a3d16a96f69 100644
--- a/ruby/ruby-faraday/ruby-faraday.SlackBuild
+++ b/ruby/ruby-faraday/ruby-faraday.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for ruby-faraday.
#
-# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
PRGNAM=ruby-faraday
SRCNAM=faraday
VERSION=${VERSION:-0.11.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,6 +60,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
+rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -110,6 +111,9 @@ gem install \
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
+rm -rf $PKG/$DESTDIR/cache
+rmdir $PKG/$DESTDIR/{build_info,extensions}
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild