void-packages/srcpkgs/python3-pdfminer.six/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
632 B
Bash

# Template file for 'python3-pdfminer.six'
pkgname=python3-pdfminer.six
version=20201018
revision=1
wrksrc=pdfminer.six-${version}
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3 python3-cryptography python3-chardet"
checkdepends="$depends tox python3-nose"
short_desc="Tool for extracting information from PDF documents"
maintainer="Bleznudd <bleznudd@pm.me>"
license="MIT"
homepage="https://github.com/pdfminer/pdfminer.six"
distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
checksum=0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
post_install() {
vlicense LICENSE
}