Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/cmake/PKGBUILD
blob: e8479e7b45c7c4e344dc24903b3633a92b1e8ae0 (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
# Patch: https://gitlab.kitware.com/cmake/cmake/commit/2c36dabbeef72e2d9c9697e6dcc5c67fd0a912dd

source+=('cmake-3.11.4-find-libuv.patch')
sha512sums+=('0477e9380834f8621251a7d81f83bc3851c1d7bba78756616b61dd97680dc3c00d2da222a9e40b615e7020691dbcb0131abcd199cee6a723578d724fcaee7288')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i "$srcdir/cmake-3.11.4-find-libuv.patch"
}

# 486-specific
if [ "${CARCH}" = "i486" ]; then
  # no Python Shinx
  makedepends=(${makedepends[@]//python-sphinx/})
  eval "$(
    declare -f build | \
      sed '
        s/--sphinx-man//
      '
  )"

  # no Qt5 GUI
  makedepends=(${makedepends[@]//qt5-base/})
  eval "$(
    declare -f build | \
      sed '
        s/--qt-gui//
      '
  )"
fi