Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/python-commonmark/PKGBUILD
blob: bf73e5760f9c2313a0bd14fe2b3bc894a53b397b (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# cycle breaking for python-sphinx 
if [ "${CARCH}" == 'i486' ]; then
  eval "$(
    declare -f build | \
      sed '
        /make.*docs.*/d
      '
    declare -f package | \
      sed '
        /install.*docs.*/d
      '
  )"
  makedepends=(${makedepends[@]//python-sphinx/})  
  makedepends=(${makedepends[@]//python-sphinx_rtd_theme/})
fi

# Don't move lib32 support into rust32-lib, we are on 32-bit in the end
# and don't draw a symlink to 64-bit libraries (but to 32-bit instead)

pkgname=(
  $(
    printf '%s\n' "${pkgname[@]}" | \
      grep -v '^lib32-rust-libs'
  )
)

# remove 32-bit stuff (shouldn't that be removed automatically?)
makedepends=(${makedepends[@]//lib32-gcc-libs/})

eval "$(
  declare -f package_rust | \
    sed '
      /mv.*i686-unknown-linux-gnu.*/d
      /ln /s/x86_64-unknown-linux-gnu/i686-unknown-linux-gnu/g
    '
)"

eval "$(
  declare -f build | \
    sed '
      /mv.*i686-unknown-linux-gnu.*/d
      /ln /s/x86_64-unknown-linux-gnu/i686-unknown-linux-gnu/g
    '
)"

# Enable on demand, if your previous rust is broken use previous version
# from build-support (this is preferable to using rust-bin below, but
# requires all intermediate versions of rust to be built
makedepends=(${makedepends[@]//rust/})
makedepends+=('rust148')

# Enable on demand, if your previous rust is broken use previous version
# from build-support
#makedepends=(${makedepends[@]//rust/})
#makedepends+=('rust-bin')

# rust 1.41 is built against llvm 9.0, so force that in as a make dependency
#makedepends+=('llvm9-libs')