void-packages/srcpkgs/azpainter/patches/0001-fix-configure-error.patch
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

39 lines
720 B
Diff

From 460cd59bcc0735ca4e1f4e14b59f4e3459c2044d Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Mon, 30 Nov 2020 09:44:57 -0600
Subject: [PATCH] fix configure error
---
configure | 3 ---
1 file changed, 3 deletions(-)
diff --git configure configure
index cb9a9f6..06e65e0 100755
--- a/configure
+++ b/configure
@@ -203,9 +203,6 @@ for opt;do
cf_check_lib=no ;;
*=*)
eval "$opt" ;;
- *)
- echo "unknown option: $opt"
- exit 1 ;;
esac
done
--
2.29.2
diff --git configure configure
index 06e65e0..b10aed0 100755
--- a/configure
+++ b/configure
@@ -201,8 +201,6 @@ for opt;do
cf_docdir=$tmp1 ;;
--no-check-lib)
cf_check_lib=no ;;
- *=*)
- eval "$opt" ;;
esac
done