diff options
author | Ianis Vasilev | 2023-06-22 14:08:22 +0300 |
---|---|---|
committer | Ianis Vasilev | 2023-10-29 11:22:56 +0200 |
commit | a1b6b08311cdd988a4eefabd62f61368068fac7e (patch) | |
tree | 37b89759f07c8b45f6be23d9e7a5e0058c463e1a | |
parent | 5bf2344ec913288363e246d4dc33694108f601ac (diff) | |
download | aur-a1b6b08311cdd988a4eefabd62f61368068fac7e.tar.gz |
Update to new version of dpsprep
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 34 insertions, 23 deletions
@@ -1,22 +1,22 @@ pkgbase = dpsprep-git - pkgdesc = Python DJVU to PDF (djvu2pdf) converter which preserves OCR text and bookmarks (table of contents) - pkgver = r17.3d657d7 + pkgdesc = A DjVu to PDF converter with a focus on small output size and the ability to preserve document outlines and text layers + pkgver = r81.89c84c3 pkgrel = 1 url = https://github.com/kcroker/dpsprep arch = any license = GPL3 makedepends = git - depends = djvulibre - depends = java-commons-lang - depends = ocrodjvu - depends = pdfbeads - depends = pdftk + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python - depends = python-argparse - depends = python-sexpdata - depends = ruby-iconv - depends = ruby-nokogiri - optdepends = jbig2enc-git: JBIG2 encoder provides much better PDF compression + depends = python-click + depends = python-djvulibre + depends = python-fpdf2 + depends = python-loguru + depends = python-pillow + depends = python-pdfrw + optdepends = ocrmypdf: Optional OCR and advanced PDF optimization source = git+https://github.com/kcroker/dpsprep.git md5sums = SKIP @@ -1,25 +1,36 @@ -# Maintainer: Dmitry Kharitonov <arch[at]nano-model[dot]com> +# Maintainer: Ianis Vasilev <ianis@ivasilev.net> pkgname=dpsprep-git _gitname=dpsprep -pkgver=r17.3d657d7 +pkgver=r81.89c84c3 pkgrel=1 -pkgdesc="Python DJVU to PDF (djvu2pdf) converter which preserves OCR text and bookmarks (table of contents)" +pkgdesc='A DjVu to PDF converter with a focus on small output size and the ability to preserve document outlines and text layers' url='https://github.com/kcroker/dpsprep' arch=('any') license=('GPL3') -makedepends=('git') -depends=('djvulibre' 'java-commons-lang' 'ocrodjvu' 'pdfbeads' 'pdftk' 'python' - 'python-argparse' 'python-sexpdata' 'ruby-iconv' 'ruby-nokogiri') -optdepends=('jbig2enc-git: JBIG2 encoder provides much better PDF compression') -source=("git+https://github.com/kcroker/dpsprep.git") +makedepends=(git python-build python-installer python-wheel) +depends=(python python-click python-djvulibre python-fpdf2 python-loguru + python-pillow python-pdfrw) +optdepends=('ocrmypdf: Optional OCR and advanced PDF optimization') +source=('git+https://github.com/kcroker/dpsprep.git') md5sums=('SKIP') pkgver() { - cd "$srcdir/$_gitname/" + cd "${srcdir}/${_gitname}/" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + git -C "${srcdir}/${_gitname}" clean -fdx +} + +build() { + cd "${srcdir}/${_gitname}/" + python -m build --wheel --no-isolation +} + package() { - install -D -m644 "$srcdir/$_gitname/README.md" "$pkgdir/usr/share/doc/$_gitname/README.md" - install -D -m755 "$srcdir/$_gitname/dpsprep" "$pkgdir/usr/bin/dpsprep" + cd "${srcdir}/${_gitname}/" + /usr/bin/python -m installer --destdir="$pkgdir" dist/*.whl + install -D -m755 bin/dpsprep "$pkgdir/usr/bin/dpsprep" + install -D -m755 dpsprep.1 "$pkgdir/usr/share/man/man1/dpsprep.1" } |