diff --git a/ocrmypdf/.SRCINFO b/ocrmypdf/.SRCINFO --- a/ocrmypdf/.SRCINFO +++ b/ocrmypdf/.SRCINFO @@ -1,8 +1,9 @@ pkgbase = ocrmypdf pkgdesc = A tool to add an OCR text layer to scanned PDF files, allowing them to be searched - pkgver = 13.1.1 + pkgver = 13.3.0 pkgrel = 1 url = https://github.com/jbarlow83/OCRmyPDF + install = ocrmypdf.install arch = any license = MPL2 makedepends = python-setuptools @@ -22,8 +23,9 @@ depends = python-pluggy depends = python-coloredlogs depends = python-importlib_resources + depends = python-packaging optdepends = jbig2enc: Better compression algorithm; results in smaller PDF files - source = https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-13.1.1.tar.gz - sha256sums = 562bd3c7c2e9d4f3c8b7ef5c4e04b2de8a4c2941e05aea31ad091a3f3d1be7ac + source = https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-13.3.0.tar.gz + sha256sums = 20682c9603e6264dc33e3e4f4cb13bec661f8c670f9f688371b87c5fd2fc95e1 pkgname = ocrmypdf diff --git a/ocrmypdf/PKGBUILD b/ocrmypdf/PKGBUILD --- a/ocrmypdf/PKGBUILD +++ b/ocrmypdf/PKGBUILD @@ -5,19 +5,20 @@ # Contributor: Daniel Reuter pkgname=ocrmypdf -pkgver=13.1.1 +pkgver=13.3.0 pkgrel=1 pkgdesc="A tool to add an OCR text layer to scanned PDF files, allowing them to be searched" url="https://github.com/jbarlow83/OCRmyPDF" arch=('any') license=(MPL2) # NOTICE: The number of dependencies we rely on is *very high*. If the program does not run after an upgrade, make sure all your deps are upgraded, especially AUR deps! -depends=('python' 'img2pdf' 'python-pillow>=7.0.0' 'tesseract' 'ghostscript' 'unpaper' 'pngquant' 'python-pikepdf' 'python-reportlab' 'python-pdfminer' 'python-tqdm' 'python-pluggy' 'python-coloredlogs' 'python-importlib_resources') +depends=('python' 'img2pdf' 'python-pillow>=7.0.0' 'tesseract' 'ghostscript' 'unpaper' 'pngquant' 'python-pikepdf' 'python-reportlab' 'python-pdfminer' 'python-tqdm' 'python-pluggy' 'python-coloredlogs' 'python-importlib_resources' 'python-packaging') makedepends=('python-setuptools' 'python-setuptools-scm-git-archive' 'python-pip') optdepends=('jbig2enc: Better compression algorithm; results in smaller PDF files') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") -sha256sums=('562bd3c7c2e9d4f3c8b7ef5c4e04b2de8a4c2941e05aea31ad091a3f3d1be7ac') +sha256sums=('20682c9603e6264dc33e3e4f4cb13bec661f8c670f9f688371b87c5fd2fc95e1') +install="${pkgname}.install" package () { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/ocrmypdf/ocrmypdf.install b/ocrmypdf/ocrmypdf.install new file mode 100644 --- /dev/null +++ b/ocrmypdf/ocrmypdf.install @@ -0,0 +1,8 @@ +pkgname='ocrmypdf' + +post_install() { + echo + echo "==> Make sure that you have the corresponding package for your language" + echo "==> from the tesseract-data group installed (e.g., tesseract-data-eng)." + echo +}