49cb564d14
* 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 ```
22 lines
819 B
Bash
22 lines
819 B
Bash
# Template file for 'python3-aiohttp'
|
|
pkgname=python3-aiohttp
|
|
version=3.7.4
|
|
revision=1
|
|
wrksrc="aiohttp-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
makedepends="python3-devel http-parser-devel"
|
|
depends="python3-async-timeout python3-attrs python3-chardet
|
|
python3-idna-ssl python3-yarl python3-typing_extensions python3-multidict"
|
|
short_desc="HTTP client/server for asyncio (PEP-3156)"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://aiohttp.readthedocs.io/"
|
|
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
|
|
checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
|
|
|
|
post_patch() {
|
|
# use system http-parser
|
|
vsed -i '/http_parser\.c/d' -i setup.py
|
|
vsed -i '/http_parser\.h/s/".*\//"/' -i aiohttp/_cparser.pxd
|
|
}
|