From e10e9e19ff9dacc237c161a68f7253217288a290 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 16 May 2018 09:12:40 +0200 Subject: lib/common-functions: remove "lib32-" from dependencies instead of inserting command to remove - this should make "makepkg --printsrcinfo" succeed. --- lib/common-functions | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'lib/common-functions') 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}" } -- cgit v1.2.3-70-g09d2