Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-08 08:26:19 +0200
committerErich Eckner <git@eckner.net>2018-05-08 08:26:19 +0200
commit56e635e1c40bf0aed327c56e54b105607bbe17c7 (patch)
tree1d7d7d77dfcf49be0252a5a0a1481d5c0df2b79d
parent684e100df759d509d615a0e711b3750c6d4d2211 (diff)
lib/common-functions: mangle_pkgbuild: fix sed to properly handle gcc's PKGBUILD
-rwxr-xr-xlib/common-functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common-functions b/lib/common-functions
index ad0f206..c0121e6 100755
--- a/lib/common-functions
+++ b/lib/common-functions
@@ -577,8 +577,10 @@ mangle_pkgbuild() {
:a
s,^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*),\0\n\1=("${\1[\@]/lib32-/}")\n,
t
- $!N
- ba
+ $! {
+ N
+ ba
+ }
}
' "${PKGBUILD}"
}