aboutsummaryrefslogtreecommitdiff
path: root/python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild')
-rw-r--r--python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild24
1 files changed, 10 insertions, 14 deletions
diff --git a/python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild b/python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild
index 1d4a8b7a23..bb0690c9d7 100644
--- a/python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild
+++ b/python/python3-PyMuPDF/python3-PyMuPDF.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-PyMuPDF
-VERSION=${VERSION:-1.23.26}
+VERSION=${VERSION:-1.24.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -52,27 +52,23 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM:8}-$VERSION
+rm -rf ${PRGNAM:8}-$VERSION mupdf*
+tar xvf $CWD/mupdf-*-source.tar.lz
+mv mupdf* mupdf
tar xvf $CWD/${PRGNAM:8}-$VERSION.tar.gz
cd ${PRGNAM:8}-$VERSION
-chown -R root:root .
-find -L . \
+chown -R root:root . ../mupdf
+find -L . ../mupdf \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-sed -i -e 's/"libclang", "swig", //' pyproject.toml
+sed -i -e "s/ret.append([ ]*'libclang'[ ]*)/pass/" \
+ -e "s/ret.append([ ]*'swig'[ ]*)/pass/" \
+ setup.py
-mv src_classic/fitz_old.i src_classic/fitz.i
-
-sed -i "s/fitz_old/fitz/g" setup.py \
- src_classic/__init__.py src_classic/utils.py
-
-export PYMUPDF_SETUP_MUPDF_BUILD=
-export PYMUPDF_SETUP_IMPLEMENTATIONS=a
-export PYMUPDF_INCLUDES=/usr/include:/usr/include/mupdf:/usr/include/freetype2
-export TESSDATA_PREFIX=/usr/share/tessdata
+export PYMUPDF_SETUP_MUPDF_BUILD=../mupdf
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl