From 5c812a110569c594843fd9c0e047ed537fa46075 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 4 Jun 2020 11:14:17 +0200 Subject: pin-dependencies.PKGBUILDpatch: compress code --- pin-dependencies.PKGBUILDpatch | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'pin-dependencies.PKGBUILDpatch') diff --git a/pin-dependencies.PKGBUILDpatch b/pin-dependencies.PKGBUILDpatch index d05e54436..a06c768e0 100644 --- a/pin-dependencies.PKGBUILDpatch +++ b/pin-dependencies.PKGBUILDpatch @@ -66,16 +66,11 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then fi depends+=( $( + [ "${CARCH}" = 'x86_64' ] && _suffix='-64' || _suffix='-32' printf '%s\n' "${_pinned_dependencies[@]}" \ - | if [ "${CARCH}" != 'x86_64' ]; then - sed ' - /\.so=/ { - s/-64$/-32/ - } - ' - else - cat - fi + | sed ' + /\.so=/ s/$/'"${_suffix}"'/ + ' ) ) fi -- cgit v1.2.3-70-g09d2