Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/xorg-server/PKGBUILD
blob: f30c30dd65ded9bb1ea3416a75b743485bee9e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# backport of ed11c4d443ad2e82512df64358d38008e0ee7693 for initializing probed mode line names
source+=('xorg-server-21.1.3-probed-mode-name-not-null.patch')
sha512sums+=('d721fad70b417b40f6b29e77b21c530b8f6d91c37e65c1a82c2cfcde5012adc17022ac0faa50ca587583aab6f6a5e5bdcdc68e36ece6ada766813aca1ab8b76d')

eval "$(
  {
    declare -f prepare || \
    printf 'prepare() {\n}\n'
  } \
  | sed '
    $i cd "$srcdir/$pkgname-$pkgver" \
       patch -Np1 -i "$srcdir/xorg-server-21.1.3-probed-mode-name-not-null.patch"
  '
)"

# disabling LTO on i486 as enabling it leads to all kind of link errors
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        s/arch-meson /arch-meson -Db_lto=false /
      '
  )"
fi