# add -latomic where needed (i486)
if [ "$CARCH" = 'i486' ]; then
  source+=('qtbase-everywhere-src-6.1.0-atomic.patch')
  sha256sums+=('93a74717564e003918941c6e4ca1866a0c252995c9b79508c0755e182df6adf7')
  eval "$(
    declare -f prepare | \
      sed '
        /patch.*nostrip.*/ a \ patch -d $_pkgfn -p1 -i ../qtbase-everywhere-src-6.1.0-atomic.patch
      '
  )"
fi