diff options
Diffstat (limited to 'libraries/ftplib/ftplib.SlackBuild')
-rw-r--r-- | libraries/ftplib/ftplib.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libraries/ftplib/ftplib.SlackBuild b/libraries/ftplib/ftplib.SlackBuild index 56648754db7e..ff4ca677c298 100644 --- a/libraries/ftplib/ftplib.SlackBuild +++ b/libraries/ftplib/ftplib.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ftplib -# Copyright 2015 Philip Lacroix <slackph at posteo dot de> +# Copyright 2015-2017 Philip Lacroix <slackph at posteo dot de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,16 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ftplib -VERSION=${VERSION:-4.0} +VERSION=${VERSION:-4.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Replace third level revision separator for the source version. +SRCVER=$(echo $VERSION | sed "s~\.\([0-9]*\)\.\([0-9]*\)$~\.\1-\2~") + if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +43,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,10 +62,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $PRGNAM-$SRCVER +tar xvzf $CWD/$PRGNAM-$SRCVER.tar.gz -cd $PRGNAM-$VERSION +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -74,8 +77,7 @@ CFLAGS="$SLKCFLAGS" cd src make -# We'll edit the destination paths manually (since no config script or -# DESTDIR variable are available). +# Let's edit the destination paths (no config script or DESTDIR available). sed -i -e "s~/usr/local/bin~"$PKG"/usr/bin~" Makefile sed -i -e "s~/usr/local/lib~"$PKG"/usr/lib"${LIBDIRSUFFIX}"~" Makefile sed -i -e "s~/usr/local/include~"$PKG"/usr/include~" Makefile |