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 ```
17 lines
539 B
Bash
17 lines
539 B
Bash
# Template file for 'par2cmdline'
|
|
pkgname=par2cmdline
|
|
version=0.8.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake"
|
|
makedepends="libgomp-devel"
|
|
short_desc="PAR 2.0 compatible file verification and repair tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/Parchive/par2cmdline"
|
|
distfiles="https://github.com/Parchive/par2cmdline/archive/v${version}.tar.gz"
|
|
checksum=529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|