From d1e1ef47554501c6a1a13e45e2bef15887c98d59 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 7 Oct 2022 09:55:24 +0200 Subject: community/ruby: set arch on 486 to i486-linux --- community/ruby/PKGBUILD | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'community/ruby/PKGBUILD') diff --git a/community/ruby/PKGBUILD b/community/ruby/PKGBUILD index 005e96e9..530cd9f4 100644 --- a/community/ruby/PKGBUILD +++ b/community/ruby/PKGBUILD @@ -1,10 +1,20 @@ # patch architecture in helper shared libs -eval "$( - declare -f package_ruby | \ - sed ' - s|x86_64-linux|i686-linux|g - ' -)" +if [ "${CARCH}" = "pentium4" -o "${CARCH}" = "i686" ]; then + eval "$( + declare -f package_ruby | \ + sed ' + s|x86_64-linux|i686-linux|g + ' + )" +fi +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f package_ruby | \ + sed ' + s|x86_64-linux|i486-linux|g + ' + )" +fi # disable testing on i486, hopefully this disables also clangd-fuzzer if [ "${CARCH}" = "i486" ]; then -- cgit v1.2.3-54-g00ecf