```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 ```
12 lines
504 B
Bash
12 lines
504 B
Bash
# Template file for 'lrzsz'
|
|
pkgname=lrzsz
|
|
version=0.12.20
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--program-transform-name=s/l//"
|
|
short_desc="Unix communication package providing the XMODEM, YMODEM ZMODEM file transfer protocols"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://ohse.de/uwe/software/lrzsz.html"
|
|
distfiles="http://ohse.de/uwe/releases/$pkgname-$version.tar.gz"
|
|
checksum=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
|