diff options
Diffstat (limited to 'source/l/newt/newt.SlackBuild')
-rwxr-xr-x | source/l/newt/newt.SlackBuild | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source/l/newt/newt.SlackBuild b/source/l/newt/newt.SlackBuild index db12aa63e..bd9052c80 100755 --- a/source/l/newt/newt.SlackBuild +++ b/source/l/newt/newt.SlackBuild @@ -1,9 +1,7 @@ #!/bin/bash -# Slackware build script for newt - # Copyright 2014 Robby Workman, Northport, Alabama, USA -# Copyright 2015, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2015, 2018, 2024 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=newt VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -64,7 +62,6 @@ fi NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} -PYTHONLIB=$( python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' ) PYTHON3LIB=$( python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())' ) rm -rf $PKG @@ -96,12 +93,13 @@ CXXFLAGS="$SLKCFLAGS" \ make $NUMJOBS || exit 1 make install DESTDIR=$PKG || exit 1 +# Nope. +rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/python2.7/ + # Since this ignores --disable-static: rm $PKG/usr/lib${LIBDIRSUFFIX}/libnewt.a # Generate .pyc files -python -m compileall "${PKG}$PYTHONLIB" -python -O -m compileall "${PKG}$PYTHONLIB" python3 -m compileall "${PKG}$PYTHON3LIB" python3 -O -m compileall "${PKG}$PYTHON3LIB" |