diff options
Diffstat (limited to 'lib/common-functions')
-rwxr-xr-x | lib/common-functions | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/common-functions b/lib/common-functions index 7194abb..4224831 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -367,18 +367,16 @@ mangle_pkgbuild() { s/^\(\s*pkgrel=\)['"'"'"]\?\([0-9.]\+\)['"'"'"]\?\s*\(#.*\)\?$/\1"\2'"${sub_pkgrel}"'"/ ' "${PKGBUILD}" -# TODO: this interferes with "makepkg --printsrcinfo" - while the PKGBUILD works as intended, -# depends will/may become empty - see for example make_source_info python-numpy extra 206b8d75680b579f547b9d588e63eb6f7c6c58e6 5b5a33cf88d0bba4bb363f8cffe12c56c9771361 /tmp/bla/SRCINFO - sed -i ' - /^\s*\(\(make\|check\|opt\|\)depends\)=(/ { + /^\s*\(make\|check\|opt\|\)depends\(_[^=[:space:]]\+\)\?=(/ { :a - s,^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*),\0\n\1=("${\1[\@]/lib32-/}")\n, - t - $! { - N - ba + /^\s*\(\S[^=]*\)=(\([^()]*\(#[^\n]*\n\)\?\)*)/! { + $! { + N + ba + } } + s/\(["'"'"'([:space:]]\)lib32-/\1/g } ' "${PKGBUILD}" } |