void-packages/srcpkgs/python3-transifex-client/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

16 lines
617 B
Bash

# Template file for 'python3-transifex-client'
pkgname=python3-transifex-client
version=0.13.6
revision=3
wrksrc="transifex-client-${version}"
build_style=python3-module
pycompile_module="txclib"
hostmakedepends="python3-setuptools"
depends="python3-urllib3 python3-requests python3-six python3-slugify<1.2.7"
short_desc="Transifex command-line tool"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.transifex.com"
distfiles="https://github.com/transifex/transifex-client/archive/${version}.tar.gz"
checksum=460f3a829e57b8025280e03a6ad497a87beba142adb2e1579678227f49d4a9ab