Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/libxml2/PKGBUILD
blob: 6a40458d24a5ecf42a940697b1585518b46d201e (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
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/
      s/legacy=true/legacy=false/
      /arch-meson/ i \
        cd $srcdir/libxml2
      s/arch-meson.*/arch-muon -D minimum=true -D icu=disabled -D default_library=both ${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
    '
)"