summaryrefslogtreecommitdiff
path: root/extra/vim/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-11 14:36:43 +0100
committerErich Eckner <git@eckner.net>2020-02-11 14:36:43 +0100
commit4b63a6e6edc0a96b155a0a1ef5de795b907f7a95 (patch)
tree7ee30803eb2defb53ee842c2662a73a6dc97af6f /extra/vim/PKGBUILD
parent65a2e572a3747fd2fc7d542e1cb0fc0a7a9600e7 (diff)
downloadpackages-4b63a6e6edc0a96b155a0a1ef5de795b907f7a95.tar.xz
extra/vim: disable gvim on i486
Diffstat (limited to 'extra/vim/PKGBUILD')
-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
+ '
+)"