From a250a2f75e6fc8bc489b63f90efe58fab8afb79e Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 22 Dec 2021 10:35:18 -0800 Subject: [PATCH 1/2] 13.2.0 --- .SRCINFO | 7 ++++--- PKGBUILD | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 5632e846..b5be79e4 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ 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.2.0 pkgrel = 1 url = https://github.com/jbarlow83/OCRmyPDF arch = any @@ -22,8 +22,9 @@ pkgbase = ocrmypdf 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.2.0.tar.gz + sha256sums = 10ae795888aee63671771b2013ded7fad492ee24732ef7682d027e0fc3a5195b pkgname = ocrmypdf diff --git a/PKGBUILD b/PKGBUILD index 39880e4c..c97f8cc3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,19 +5,19 @@ # Contributor: Daniel Reuter pkgname=ocrmypdf -pkgver=13.1.1 +pkgver=13.2.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=('10ae795888aee63671771b2013ded7fad492ee24732ef7682d027e0fc3a5195b') package () { cd "${srcdir}/${pkgname}-${pkgver}" -- 2.51.2 From 9f21002a56f3a52e06da522dd2dbc40d62927870 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 26 Jan 2022 21:07:45 -0800 Subject: [PATCH 2/2] 13.3.0 --- .SRCINFO | 7 ++++--- PKGBUILD | 5 +++-- ocrmypdf.install | 8 ++++++++ 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 ocrmypdf.install diff --git a/.SRCINFO b/.SRCINFO index b5be79e4..dc412880 100644 --- a/.SRCINFO +++ b/.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.2.0 + pkgver = 13.3.0 pkgrel = 1 url = https://github.com/jbarlow83/OCRmyPDF + install = ocrmypdf.install arch = any license = MPL2 makedepends = python-setuptools @@ -24,7 +25,7 @@ pkgbase = ocrmypdf 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.2.0.tar.gz - sha256sums = 10ae795888aee63671771b2013ded7fad492ee24732ef7682d027e0fc3a5195b + source = https://files.pythonhosted.org/packages/source/o/ocrmypdf/ocrmypdf-13.3.0.tar.gz + sha256sums = 20682c9603e6264dc33e3e4f4cb13bec661f8c670f9f688371b87c5fd2fc95e1 pkgname = ocrmypdf diff --git a/PKGBUILD b/PKGBUILD index c97f8cc3..26ddb1ca 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ # Contributor: Daniel Reuter pkgname=ocrmypdf -pkgver=13.2.0 +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" @@ -17,7 +17,8 @@ depends=('python' 'img2pdf' 'python-pillow>=7.0.0' 'tesseract' 'ghostscript' 'un 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=('10ae795888aee63671771b2013ded7fad492ee24732ef7682d027e0fc3a5195b') +sha256sums=('20682c9603e6264dc33e3e4f4cb13bec661f8c670f9f688371b87c5fd2fc95e1') +install="${pkgname}.install" package () { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/ocrmypdf.install b/ocrmypdf.install new file mode 100644 index 00000000..0058ae9a --- /dev/null +++ b/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 +} -- 2.51.2