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

17 lines
737 B
Bash

# Template file for 'python3-pykeepass'
pkgname=python3-pykeepass
version=3.2.1
revision=2
wrksrc="pykeepass-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-dateutil python3-argon2 python3-construct python3-lxml
python3-pycryptodomex python3-future"
checkdepends="$depends"
short_desc="Python3 library to interact with keepass databases"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/libkeepass/pykeepass"
changelog="https://raw.githubusercontent.com/libkeepass/pykeepass/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/p/pykeepass/pykeepass-${version}.tar.gz"
checksum=b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284