diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2017-02-01 10:44:44 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-04 06:59:33 +0700 |
commit | 946bcdce5f9d990aab4d0811de64d1a3a3b225cd (patch) | |
tree | 1d5f6dc7aad79ba7cefb48f80f52c17c28625679 | |
parent | 8c89992316b48f039e27e289367863a14eb216b6 (diff) | |
download | slackbuilds-946bcdce5f9d990aab4d0811de64d1a3a3b225cd.tar.gz |
ruby/ruby-multipart-post: Minor SlackBuild changes.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | ruby/ruby-multipart-post/ruby-multipart-post.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ruby/ruby-multipart-post/ruby-multipart-post.SlackBuild b/ruby/ruby-multipart-post/ruby-multipart-post.SlackBuild index 2ddc4ae094..768dcc07cc 100644 --- a/ruby/ruby-multipart-post/ruby-multipart-post.SlackBuild +++ b/ruby/ruby-multipart-post/ruby-multipart-post.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for ruby-multipart-post. # -# Copyright 2015 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,12 +25,12 @@ PRGNAM=ruby-multipart-post SRCNAM=multipart-post VERSION=${VERSION:-2.0.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -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 |