void-packages/srcpkgs/qt5-fsarchiver/patches/cross.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

11 lines
775 B
Diff

--- a/qt5-fsarchiver.pro 2018-06-22 00:01:06.101404975 +0200
+++ b/qt5-fsarchiver.pro 2018-06-22 00:01:45.933869386 +0200
@@ -9,7 +9,7 @@
QT += widgets gui core
DEFINES += HAVE_CONFIG_H _REENTRANT _FILE_OFFSET_BITS=64 _LARGEFILE64_SOURCE _GNU_SOURCE HAVE_QT5
-INCLUDEPATH += . src /usr/include/ext2fs /usr/include/et /usr/include/e2p /usr/include/blkid /usr/include/uuid
+INCLUDEPATH += . src $$(XBPS_CROSS_BASE)/usr/include/ext2fs $$(XBPS_CROSS_BASE)/usr/include/et $$(XBPS_CROSS_BASE)/usr/include/e2p $$(XBPS_CROSS_BASE)/usr/include/blkid $$(XBPS_CROSS_BASE)/usr/include/uuid
LIBS += -L/usr/lib -lQt5Gui -lQt5Core -lpthread -lrt -llzma -lext2fs -lcom_err -le2p -lblkid -luuid -lz -llz4 -lbz2 -llzo2 -lgcrypt -lgpg-error -lzstd
OBJECTS_DIR = build
MOC_DIR = build