void-packages/srcpkgs/auto-auto-complete/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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
```
2021-06-20 13:17:29 +07:00

13 lines
505 B
Bash

# Template file for 'auto-auto-complete'
pkgname=auto-auto-complete
version=7.2
revision=5
build_style=gnu-makefile
hostmakedepends="python3 texinfo"
depends="python3"
short_desc="Autogenerate shell auto-completion scripts"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/maandree/auto-auto-complete"
distfiles="https://github.com/maandree/${pkgname}/archive/${version}.tar.gz"
checksum=5e54025c6ef65dfff5ba976d23eb778a0936b0678763ebcd78359d460300301e