diff options
author | Erich Eckner <git@eckner.net> | 2020-06-04 11:14:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-04 11:14:17 +0200 |
commit | 5c812a110569c594843fd9c0e047ed537fa46075 (patch) | |
tree | 03dc8631b869510069841fc0ca7dd34450c7f51f /pin-dependencies.PKGBUILDpatch | |
parent | 65c9867877aac47cd38eb3830e3e81fd70b3e2a5 (diff) | |
download | archlinuxewe-5c812a110569c594843fd9c0e047ed537fa46075.tar.xz |
pin-dependencies.PKGBUILDpatch: compress code
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 |