Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/gtk4/PKGBUILD
blob: a93cbef47d48a9c5c75231d38423077e9d1fcacb (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# do not build documentation, depends on too many broken things
eval "$(
  declare -f build | \
    sed '
      s/-D gtk_doc=true/-D gtk_doc=false/
      s/-D man-pages=true/-D man-pages=false/
      s/ninja -C build g{d,s,t}k4-doc/ninja -C build/
    '
  declare -f package_gtk4 | \
    sed '
      /gtk4-update-icon-cache.1/d
      /usr\/share\/man\/man1/d
      \@usr/share/doc@ d
    '
  declare -f package_gtk-update-icon-cache | \
    sed '
      /gtk4-update-icon-cache.1/d
    '
  declare -f package_gtk4-docs | \
    sed '
      /^\s*mv /d
    '
)"

# Vala is not bootstrapped on i486
# (thus no tracker3)
# gst-plugins-bad-libs have too many dependencies not available yet on i486
# gstreamer not built on i486 for now (circular dependency?)
# adwaita-icon-theme is in a cycle with gtk-update-icon-cache (which we
# build here in gtk4)
if [ "$CARCH" = 'i486' ]; then
  depends=(${depends[@]//tracker3/})
  depends=(${depends[@]//gst-plugins-bad-libs/})
  depends=(${depends[@]//adwaita-icon-theme/})
  eval "$(
    declare -f build | \
      sed '
        s/-D tracker=enabled/-D tracker=disabled/
        s/arch-meson/arch-meson -D media-gstreamer=disabled/
      '
  )"  
fi