Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/vim/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/vim/PKGBUILD b/extra/vim/PKGBUILD
index 3692e5fe..1127c55c 100644
--- a/extra/vim/PKGBUILD
+++ b/extra/vim/PKGBUILD
@@ -1 +1,30 @@
unset check
+
+# do not build gvim on i486 - no gtk3 and no libcanberra
+
+makedepends=(
+ $(
+ printf "${makedepends[@]}" \
+ | grep -vxF 'gtk3' \
+ | grep -vxF 'libcanberra'
+ )
+)
+makedepends_i686=(gtk3 libcanberra)
+makedepends_pentium4=("${makedepends_i686[@]}")
+
+eval "$(
+ declare -f prepare \
+ | sed '
+ /gvim/ s/^/[ "${CARCH}" = i486 ] || /
+ '
+
+ declare -f build \
+ | sed '
+ /cd gvim/ s/^/[ "${CARCH}" = i486 ] || /
+ '
+
+ declare -f package_gvim \
+ | sed '
+ /cd gvim/ i [ "${CARCH}" != i486 ] || return
+ '
+)"