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

14 lines
455 B
Bash

# Template file for 'ptii'
pkgname=ptii
version=0.4
revision=2
build_style=gnu-makefile
makedepends="inotify-tools-devel"
short_desc="Simple program you can use with ii"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="WTFPL"
homepage="http://git.z3bra.org/cgit.cgi/ptii/"
distfiles="https://sources.voidlinux.de/ptii-${version}/ptii-${version}.tar.bz2"
checksum=2f130417251938c9947293f4df07b6db37909e03d4f600e0af025d1ae6a02d26
LDFLAGS="-lpthread"