tesseract-ocr: use create-wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-27 18:59:16 +07:00 committed by Đoàn Trần Công Danh
parent 7779f77cef
commit 1d5d4f39f7
1 changed files with 4 additions and 2 deletions

View File

@ -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