From 1d5d4f39f7e0dc156c9602d3433e016a740758df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:16 +0700 Subject: [PATCH] tesseract-ocr: use create-wrksrc --- srcpkgs/tesseract-ocr/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template index afdac4ac30e..394f82aea2a 100644 --- a/srcpkgs/tesseract-ocr/template +++ b/srcpkgs/tesseract-ocr/template @@ -3,6 +3,7 @@ pkgname=tesseract-ocr version=4.1.1 revision=7 _tessdataver=4.0.0 +create_wrksrc=yes build_style=gnu-configure configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include $(vopt_enable openmp)" make_build_args="all training" @@ -44,8 +45,9 @@ pkg_lang() { } post_extract() { - mv ${XBPS_BUILDDIR}/tessdata-${_tessdataver}/* ${wrksrc}/tessdata - rmdir ${XBPS_BUILDDIR}/tessdata-${_tessdataver} + mv tesseract-${version}/* . + mv tessdata-${_tessdataver}/* ${wrksrc}/tessdata + rmdir tessdata-${_tessdataver} } pre_configure() { NOCONFIGURE=1 ./autogen.sh