void-packages/srcpkgs/lrzsz/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

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