From e35248a7aacb6f5595deea95004ff88ebf840cb3 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sat, 9 Apr 2022 20:36:22 +0900 Subject: [PATCH] tesseract: Link against libandroid-posix-semaphore --- packages/tesseract/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/tesseract/build.sh b/packages/tesseract/build.sh index fe01061c6..9843d2c64 100644 --- a/packages/tesseract/build.sh +++ b/packages/tesseract/build.sh @@ -3,11 +3,11 @@ TERMUX_PKG_DESCRIPTION="Tesseract is probably the most accurate open source OCR TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=5.1.0 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://github.com/tesseract-ocr/tesseract/archive/${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=fdec8528d5a0ecc28ab5fff985e0b8ced60726f6ef33f54126f2868e323d4bd2 TERMUX_PKG_AUTO_UPDATE=true -TERMUX_PKG_DEPENDS="libc++, libtool, libuuid, leptonica, libandroid-glob, zstd, libicu, pango, libandroid-posix-semaphore" +TERMUX_PKG_DEPENDS="leptonica, libandroid-glob, libandroid-posix-semaphore, libc++, libicu, libtool, libuuid, pango, zstd" TERMUX_PKG_BREAKS="tesseract-dev" TERMUX_PKG_REPLACES="tesseract-dev" TERMUX_PKG_FORCE_CMAKE=true @@ -19,6 +19,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" # NEON checks in src/arch/simddetect.cpp don't work for i686 currently TERMUX_PKG_BLACKLISTED_ARCHES="i686" +termux_step_pre_configure() { + LDFLAGS+=" -landroid-posix-semaphore" +} + termux_step_post_make_install() { # download english trained data mkdir -p "${TERMUX_PREFIX}"/share/tessdata