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

19 lines
599 B
Bash

# Template file for 'python3-mygpoclient'
pkgname=python3-mygpoclient
version=1.8
revision=6
wrksrc="mygpoclient-${version}"
build_style=python3-module
hostmakedepends="python3-devel"
depends="python3"
short_desc="Client Library for gpodder.net (Python3)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/gpodder/mygpoclient"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2
conflicts="python-mygpoclient>=0"
pre_build() {
vsed -i '/share\/man\/man1/d' setup.py
}