tesseract-ocr: use create-wrksrc
This commit is contained in:
parent
7779f77cef
commit
1d5d4f39f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue