diff --git a/srcpkgs/pdfsandwich/patches/00-fix-tesseract-path.patch b/srcpkgs/pdfsandwich/patches/00-fix-tesseract-path.patch new file mode 100644 index 00000000000..b955adae40c --- /dev/null +++ b/srcpkgs/pdfsandwich/patches/00-fix-tesseract-path.patch @@ -0,0 +1,13 @@ +diff --git pdfsandwich.ml pdfsandwich.ml +index 10c92a0..c32f803 100644 +--- pdfsandwich.ml ++++ pdfsandwich.ml +@@ -19,7 +19,7 @@ let global_temp_dir = Filename.temp_file "pdfsandwich_tmp" "";; + let unpaper = ref "unpaper";; + let identify = ref "identify";; + let convert = ref "convert";; +-let tesseract = ref "tesseract";; (* this will be preceded by the OMP_THREAD_LIMIT (see options) *) ++let tesseract = ref "tesseract-ocr";; (* this will be preceded by the OMP_THREAD_LIMIT (see options) *) + let pdfinfo = ref "pdfinfo";; + let pdfunite = ref "pdfunite";; + let hocr2pdf = ref "hocr2pdf";; diff --git a/srcpkgs/pdfsandwich/template b/srcpkgs/pdfsandwich/template new file mode 100644 index 00000000000..257b4f22783 --- /dev/null +++ b/srcpkgs/pdfsandwich/template @@ -0,0 +1,14 @@ +# Template file for 'pdfsandwich' +pkgname=pdfsandwich +version=0.1.7 +revision=1 +build_style=gnu-configure +hostmakedepends="gawk ocaml" +makedepends="ocaml" +depends="tesseract-ocr ImageMagick ghostscript poppler-utils unpaper" +short_desc="CLI tool which is useful to add OCR to scanned books or journals" +maintainer="Nick Hahn " +license="GPL-2.0-only" +homepage="http://www.tobias-elze.de/pdfsandwich/" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" +checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39