python/python3-PyMuPDF: Updated for version 1.23.26.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3e423bcb00
commit
cf40b9bc7b
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for python3-PyMuPDF
|
||||
|
||||
# Copyright 2023, Alexander Verbovetsky, Moscow, Russia
|
||||
# Copyright 2023-2024, Alexander Verbovetsky, Moscow, Russia
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=python3-PyMuPDF
|
||||
VERSION=${VERSION:-1.21.1}
|
||||
VERSION=${VERSION:-1.23.26}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -62,14 +62,25 @@ 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 {} \;
|
||||
|
||||
export PYMUPDF_SETUP_MUPDF_BUILD=""
|
||||
python3 setup.py install --root=$PKG
|
||||
sed -i -e 's/"libclang", "swig", //' pyproject.toml
|
||||
|
||||
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
|
||||
python3 -m build --wheel --no-isolation
|
||||
python3 -m installer --destdir "$PKG" dist/*.whl
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README.md changes.txt docs $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README* changes.txt docs $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="python3-PyMuPDF"
|
||||
VERSION="1.21.1"
|
||||
VERSION="1.23.26"
|
||||
HOMEPAGE="https://github.com/pymupdf/PyMuPDF"
|
||||
DOWNLOAD="https://github.com/pymupdf/PyMuPDF/archive/1.21.1/PyMuPDF-1.21.1.tar.gz"
|
||||
MD5SUM="b211e6fa22ceb44d01219d7ede7ec171"
|
||||
DOWNLOAD="https://github.com/pymupdf/PyMuPDF/archive/1.23.26/PyMuPDF-1.23.26.tar.gz"
|
||||
MD5SUM="3dd25058cbee9f45e823806901b804e8"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="mupdf %README%"
|
||||
REQUIRES="mupdf python3-psutil %README%"
|
||||
MAINTAINER="Alexander Verbovetsky"
|
||||
EMAIL="alik@ejik.org"
|
||||
|
|
Loading…
Reference in New Issue