void-packages/srcpkgs/filezilla/patches/cross.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

12 lines
501 B
Diff

--- a/configure 2019-05-08 10:44:58.580806039 +0200
+++ b/configure 2019-05-08 10:45:35.185289121 +0200
@@ -17628,7 +17628,7 @@
"$ac_abs_confdir/src/fzshellext/configure" --prefix="$prefix" --exec-prefix="$exec_prefix" --host=x86_64-w64-mingw32 || exit 1
else
cd "$OLD_DIR/src/fzshellext/64" || exit 1
- "$ac_abs_confdir/src/fzshellext/configure" --disable-shellext || exit 1
+ "$ac_abs_confdir/src/fzshellext/configure" --host="$host_alias" --disable-shellext || exit 1
fi
cd "$OLD_DIR"