49cb564d14
* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
14 lines
568 B
Bash
14 lines
568 B
Bash
# Template file for 'pdfsandwich'
|
|
pkgname=pdfsandwich
|
|
version=0.1.7
|
|
revision=3
|
|
build_style=gnu-configure
|
|
hostmakedepends="ocaml perl"
|
|
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 <nick.hahn@hotmail.de>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://www.tobias-elze.de/pdfsandwich/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=9795ffea84b9b6b501f38d49a4620cf0469ddf15aac31bac6dbdc9ec1716fa39
|