Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/qt6-base/PKGBUILD
blob: 131ce0c0c6f4f199f609c944092645ee1d4e4087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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

# Fix SSE2 issues on i486/i686
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
  eval "$(
    declare -f prepare | \
      sed '$ d' | sed '$ a sed -i s/defined\\(__FLT16_MAX__\\)/0/ src/corelib/global/qtypes.h; }'
  )"
fi