summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/fmt/PKGBUILD20
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/fmt/PKGBUILD b/extra/fmt/PKGBUILD
new file mode 100644
index 00000000..7cd864bd
--- /dev/null
+++ b/extra/fmt/PKGBUILD
@@ -0,0 +1,20 @@
+# no npm on i486 (used for documnentation only)
+makedepends=(${makedepends[@]//npm/})
+makedepends_i686+=(npm)
+makedepends_pentium4=("${makedepends_i686[@]}")
+
+if [ "${CARCH}" = "i486" ]; then
+ eval "$(
+ declare -f prepare | \
+ sed '
+ /npm/d
+ '
+ )"
+
+ eval "$(
+ declare -f build | \
+ sed '
+ /cmake.*doc/d
+ '
+ )"
+fi