diff options
author | David Woodfall <dave@dawoodfall.net> | 2018-11-07 00:59:31 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-11-10 07:48:05 +0700 |
commit | 6413a8cd3525b9c9b3ebc12aae349c3b2bf4b084 (patch) | |
tree | b9dbb86966cf66a9b805602f2c5896576a99fc0c /python/python2-sip | |
parent | d0c11265faf671f58508ee0745e9bfda6ba1098d (diff) |
python/python2-sip: Update default sip dir.
Diffstat (limited to 'python/python2-sip')
-rw-r--r-- | python/python2-sip/python2-sip.SlackBuild | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/python/python2-sip/python2-sip.SlackBuild b/python/python2-sip/python2-sip.SlackBuild index 0edfad4e9967f..37d5f90d6c30c 100644 --- a/python/python2-sip/python2-sip.SlackBuild +++ b/python/python2-sip/python2-sip.SlackBuild @@ -33,7 +33,7 @@ PRGNAM=python2-sip SRCNAM=sip VERSION=${VERSION:-4.19.6} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -85,8 +85,7 @@ python configure.py \ -b "/usr/bin" \ -d "$PYTHONLIB" \ -e "/usr/include/python$PYTHONVER" \ - --sip-module="PyQt5.sip" \ - -v "/usr/share/sip-$VERSION" \ + --sip-module="python2_sip" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" @@ -100,8 +99,11 @@ mkdir -p $PKG/usr/include/python$PYTHONVER/python2-sip mv $PKG/usr/include/python$PYTHONVER/sip.h \ $PKG/usr/include/python$PYTHONVER/python2-sip/sip.h \ -mv $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/sip.pyi \ - $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/python2_sip.pyi +for oldf in sipdistutils.py sip.pyi sipconfig.py +do + mv $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/$oldf \ + $PKG/usr/lib$LIBDIRSUFFIX/python$PYTHONVER/site-packages/python2_$oldf +done find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |