void-packages/srcpkgs/qtcurve/patches/qt5-5.15.0.patch
Đoàn Trần Công Danh 635e9da391 srcpkgs/q*: 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

10 lines
302 B
Diff

--- a/qt5/style/qtcurve.h 2017-06-03 21:16:00.000000000 +0200
+++ b/qt5/style/qtcurve.h 2020-07-25 11:06:21.935263927 +0200
@@ -32,6 +32,7 @@
#include <QColor>
#include <QFont>
#include <QStyleOption>
+#include <QPainterPath>
#include <QtGlobal>
#include <QCommonStyle>
#ifdef QTC_QT5_ENABLE_KDE