Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/libxml2/PKGBUILD
blob: c405a7f337dc096d988cd993730f36f2cb2e3dda (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
makedepends+=(git)

# use muon instead of meson, no python (and meson needs python)
makedepends=(${makedepends[@]//meson/})
makedepends+=(muon-meson)

eval "$(
  declare -f build | \
    sed '
      s/python=true/python=false/
      /arch-meson/ i \
        cd $srcdir/libxml2
      s/arch-meson.*/arch-muon ${meson_options[@]} ./
      s/meson compile -C build/muon samu -v -j1/
    '
  declare -f check | \
    sed '
      /meson test/ i \
        cd $srcdir/libxml2
      s/meson test -C build --print-errorlogs/muon test -v/
    '
  declare -f package_libxml2 | \
    sed '
      /meson install/ i \
        cd $srcdir/libxml2
      /meson install/ a \
        cd ..
      s/meson install.*/muon install -d "$pkgdir"/
      /mv.*doc\/usr\/share/d
    '
)"