diff options
Diffstat (limited to 'network/surl/surl.SlackBuild')
-rw-r--r-- | network/surl/surl.SlackBuild | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/network/surl/surl.SlackBuild b/network/surl/surl.SlackBuild index 069739bbbf..9f065462c0 100644 --- a/network/surl/surl.SlackBuild +++ b/network/surl/surl.SlackBuild @@ -2,10 +2,12 @@ # Slackware build script for surl -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230520 bkw: python => python2 (no other changes). + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=surl @@ -35,20 +37,6 @@ OUTPUT=${OUTPUT:-/tmp} TARBALL=$CWD/${PRGNAM}_$VERSION-1~ppa2~ubuntu13.10.1.tar.gz SRCDIR=recipe-$VERSION-1~ppa2 -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -64,7 +52,7 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ patch -p1 < $CWD/disable_broken_services.diff sed -i 's,share/man,man,' setup.py -python setup.py install --root=$PKG +python2 setup.py install --root=$PKG gzip -9 $PKG/usr/man/man1/$PRGNAM.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |