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

20 lines
709 B
Diff

--- a/qt5-fsarchiver.pro 2018-06-21 23:15:21.665117797 +0200
+++ b/qt5-fsarchiver.pro 2018-06-21 23:15:36.159276907 +0200
@@ -147,7 +147,7 @@
src/writebuf.c
RESOURCES += src/icon.qrc
# install
- target.path = /usr/sbin
+ target.path = /usr/bin
icon.files = src/images/harddrive1.png
icon.path = /usr/share/app-install/icons
autostart.files = starter/gnome-qt5-fsarchiver.desktop
@@ -158,7 +158,7 @@
autostart2.path = /usr/share/applications
doc.files = doc
doc.path = /usr/share/doc/qt5-fsarchiver/doc
- smbfind.files = src/sbin
+ smbfind.files = src/bin
smbfind.path = /usr
TRANSLATIONS += translations/qt5-fsarchiver_ar.ts \
translations/qt5-fsarchiver_ca.ts \