aboutsummaryrefslogtreecommitdiff
path: root/libraries/wxPython4/wxPython4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/wxPython4/wxPython4.SlackBuild')
-rw-r--r--libraries/wxPython4/wxPython4.SlackBuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/libraries/wxPython4/wxPython4.SlackBuild b/libraries/wxPython4/wxPython4.SlackBuild
index ec5029b880..726da30e3e 100644
--- a/libraries/wxPython4/wxPython4.SlackBuild
+++ b/libraries/wxPython4/wxPython4.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wxPython4
-# Copyright 2018-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2018-2025 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,8 +28,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wxPython4
SRCNAM=wxPython
-VERSION=${VERSION:-4.2.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.2.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,20 +50,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-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
@@ -79,6 +65,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+
+if [ "$PYVER" == "3.9" ]; then
+ export PYTHONPATH=/opt/python$PYVER/site-packages
+fi
+
python3 build.py build --use_syswx --release
python3 build.py install --destdir="$PKG"