David Runge pushed to branch main at Arch Linux / Packaging / Packages / mupdf
Commits: e7bc7c23 by David Runge at 2023-10-29T20:57:51+01:00 Use tesseract for OCR support and add user.make Add user.make file for better control over used dependencies and features. Signed-off-by: David Runge <[email protected]> - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -50,12 +50,27 @@ prepare() { # remove bundled packages, we want our system libraries rm -rf thirdparty/{curl,freeglut,freetype,gumbo-parser,harfbuzz,jbig2dec,leptonica,libjpeg,openjpeg,tesseract,zlib} + + { + printf "USE_SYSTEM_CURL := yes\n" + printf "USE_SYSTEM_FREETYPE := yes\n" + printf "USE_SYSTEM_GLUT := yes\n" + printf "USE_SYSTEM_GUMBO := yes\n" + printf "USE_SYSTEM_HARFBUZZ := yes\n" + printf "USE_SYSTEM_JBIG2DEC := yes\n" + printf "USE_SYSTEM_JPEGXR := yes\n" # not used without HAVE_JPEGXR + printf "USE_SYSTEM_LCMS2 := no\n" # need lcms2-art fork + printf "USE_SYSTEM_LEPTONICA := yes\n" + printf "USE_SYSTEM_LIBJPEG := yes\n" + printf "USE_SYSTEM_MUJS := no\n" # needs patch to debundle + printf "USE_SYSTEM_OPENJPEG := yes\n" + printf "USE_SYSTEM_TESSERACT := yes\n" + printf "USE_SYSTEM_ZLIB := yes\n" + printf "USE_TESSERACT := yes\n" + } > user.make } build() { - USE_SYSTEM_LIBS='yes' - export USE_SYSTEM_LIBS - cd $pkgbase-${pkgver/_/}-source make shared=yes build=release libs apps } @@ -64,12 +79,15 @@ package_libmupdf() { pkgdesc='Library for Lightweight PDF and XPS viewer' depends=( 'freetype2' + 'gcc-libs' 'glibc' 'gumbo-parser' 'harfbuzz' 'jbig2dec' + 'leptonica' 'libjpeg' 'openjpeg2' + 'tesseract' 'zlib' ) View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mupdf/-/commit/e7bc7c23eb446caf69af8fa1320a737c9ceaf8eb -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mupdf/-/commit/e7bc7c23eb446caf69af8fa1320a737c9ceaf8eb You're receiving this email because of your account on gitlab.archlinux.org.
