diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-09 04:46:15 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:58:52 +0700 |
commit | b98bfa48661226b6f2770258bcc0917e88e5dc0c (patch) | |
tree | 5475c77c53e6c918ee5665d32db886b7eb7e10c6 /network/wput/wput.SlackBuild | |
parent | 57ced6820ed246d3ba2602099d0c9fb5dfed8077 (diff) | |
download | slackbuilds-b98bfa48661226b6f2770258bcc0917e88e5dc0c.tar.gz |
network/wput: New maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/wput/wput.SlackBuild')
-rw-r--r-- | network/wput/wput.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/network/wput/wput.SlackBuild b/network/wput/wput.SlackBuild index 9dd371bd2d..b556f393f4 100644 --- a/network/wput/wput.SlackBuild +++ b/network/wput/wput.SlackBuild @@ -24,6 +24,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20170309 bkw: +# - take over maintenance +# - i486 => i586 +# - minor tweaks + PRGNAM=wput VERSION=${VERSION:-0.6.1} BUILD=${BUILD:-1} @@ -31,7 +36,7 @@ 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 @@ -42,8 +47,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" @@ -59,7 +64,7 @@ fi set -e rm -rf $PKG -mkdir -p $TMP $PKG/usr/{bin,man/man1} $OUTPUT +mkdir -p $TMP $OUTPUT $PKG/usr/bin $PKG/usr/man/man1 cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tgz @@ -86,12 +91,10 @@ sed -i 's/^datadir *= $(prefix)\/share/datadir = $(prefix)/' Makefile make make install - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +strip $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ABOUT-NLS COPYING ChangeLog INSTALL TODO doc/{USAGE.*,passwordfile,wputrc} \ +cp -a ABOUT-NLS C* TODO doc/USAGE.* doc/passwordfile doc/wputrc \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |