Date: Saturday, April 1, 2023 @ 19:32:08 Author: arojas Revision: 1431802
upgpkg: mauikit-imagetools 2.2.2-2: leptonica 1.83 rebuild Added: mauikit-imagetools/trunk/leptonica-1.83.patch Modified: mauikit-imagetools/trunk/PKGBUILD ----------------------+ PKGBUILD | 12 +++++++++--- leptonica-1.83.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-01 18:27:49 UTC (rev 1431801) +++ PKGBUILD 2023-04-01 19:32:08 UTC (rev 1431802) @@ -2,7 +2,7 @@ pkgname=mauikit-imagetools pkgver=2.2.2 -pkgrel=1 +pkgrel=2 pkgdesc='MauiKit Image Tools Components' url='https://mauikit.org/' arch=(x86_64) @@ -9,9 +9,15 @@ license=(LGPL) depends=(mauikit kquickimageeditor qt5-location exiv2 tesseract) makedepends=(extra-cmake-modules opencv) -source=(https://download.kde.org/stable/maui/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz) -sha256sums=('640d84230480434acd053bada3ce5f2568cba79d4b273aa86b07a15dc401c6c9') +source=(https://download.kde.org/stable/maui/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz + leptonica-1.83.patch) +sha256sums=('640d84230480434acd053bada3ce5f2568cba79d4b273aa86b07a15dc401c6c9' + 'ffc6454feb8d2c11fcd83ab5323487d163e35bf37e43b5f3ff9f436a93fbb4d1') +prepare() { + patch -d $pkgname-$pkgver -p1 < leptonica-1.83.patch +} + build() { cmake -B build -S $pkgname-$pkgver cmake --build build Added: leptonica-1.83.patch =================================================================== --- leptonica-1.83.patch (rev 0) +++ leptonica-1.83.patch 2023-04-01 19:32:08 UTC (rev 1431802) @@ -0,0 +1,12 @@ +diff --git a/src/code/modules/image2text/src/ocs.cpp b/src/code/modules/image2text/src/ocs.cpp +index 386dd84..624075e 100644 +--- a/src/code/modules/image2text/src/ocs.cpp ++++ b/src/code/modules/image2text/src/ocs.cpp +@@ -4,6 +4,7 @@ + + #include <tesseract/baseapi.h> + #include <leptonica/allheaders.h> ++#include <leptonica/pix_internal.h> + #include "OCRLanguageModel.h" + #if TESSERACT_MAJOR_VERSION < 5 + #include <tesseract/strngs.h>
