diff options
Diffstat (limited to 'pin-dependencies.PKGBUILDpatch')
-rw-r--r-- | pin-dependencies.PKGBUILDpatch | 13 |
1 files changed, 4 insertions, 9 deletions
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 |