Đ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

26 lines
761 B
Bash

# Template file for 'python3-cli_helpers'
pkgname=python3-cli_helpers
version=1.2.1
revision=3
wrksrc="cli_helpers-${version}"
build_style=python3-module
pycompile_module="cli_helpers"
hostmakedepends="python3-setuptools"
depends="python3-configobj python3-tabulate python3-terminaltables
python3-wcwidth"
checkdepends="python3-pytest ${depends}"
short_desc="Python helpers for building command-line apps"
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="BSD-3-Clause"
homepage="https://github.com/dbcli/cli_helpers"
distfiles="${PYPI_SITE}/c/cli_helpers/cli_helpers-${version}.tar.gz"
checksum=98db22eaa86827d99ee6af9f5f3923142d04df256425204530842b032849a165
do_check() {
python3 -m pytest
}
post_install() {
vlicense LICENSE
}