Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cmake')
-rw-r--r--extra/cmake/PKGBUILD21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/cmake/PKGBUILD b/extra/cmake/PKGBUILD
index f9149e9d..e8479e7b 100644
--- a/extra/cmake/PKGBUILD
+++ b/extra/cmake/PKGBUILD
@@ -7,3 +7,24 @@ 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