```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
683 B
Bash
14 lines
683 B
Bash
# Template file for 'img2pdf'
|
|
pkgname=img2pdf
|
|
version=0.4.1
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-pikepdf python3-setuptools"
|
|
depends="colord python3-pdfrw python3-pikepdf python3-Pillow python3-tkinter"
|
|
checkdepends="colord exiftool ghostscript ImageMagick6 mupdf-tools netpbm poppler python3-numpy python3-pdfrw python3-pytest python3-scipy"
|
|
short_desc="Lossless conversion of raster images to PDF"
|
|
maintainer="Philipp David <pd@3b.pm>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gitlab.mister-muffin.de/josch/img2pdf"
|
|
distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz"
|
|
checksum=38a1229ca84b211d7782d1d65ad7251a9781bf24f6f6497c738c755fcfed5552
|