summaryrefslogtreecommitdiff
path: root/network/wput/wput.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/wput/wput.SlackBuild')
-rw-r--r--network/wput/wput.SlackBuild19
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