void-packages/srcpkgs/textosaurus/patches/qt5-5.15.0.patch
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: convert patches to -Np1
```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
377 B
Diff

--- a/src/libtextosaurus/saurus/miscellaneous/textapplication.h 2018-11-27 07:50:39.000000000 +0100
+++ b/src/libtextosaurus/saurus/miscellaneous/textapplication.h 2020-07-27 12:33:06.612447044 +0200
@@ -8,6 +8,7 @@
#include "definitions/definitions.h"
#include "saurus/miscellaneous/textapplicationsettings.h"
+#include <QDropEvent>
#include <QIcon>
class TextEditor;