Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-14 10:29:38 +0100
committerErich Eckner <git@eckner.net>2020-01-14 10:29:38 +0100
commite880611718a2fde11ecd5283fd3a0d37dfacfe5c (patch)
treee7d2e72f954af7e1b8d9127be09ac9b5e0919f86 /extra
parente994c1b50861ecb7b610d54461c0c39e05ad9e19 (diff)
reintroduce libical on i486 - we just need to drop vala and gobject-introspection dependencies
Diffstat (limited to 'extra')
-rw-r--r--extra/libical/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/libical/PKGBUILD b/extra/libical/PKGBUILD
new file mode 100644
index 00000000..dea96086
--- /dev/null
+++ b/extra/libical/PKGBUILD
@@ -0,0 +1,36 @@
+# no gobject-introspection and vala on i486
+makedepends=(
+ $(
+ printf '%s\n' "${makedepends[@]}" \
+ | grep -vxF gobject-introspection \
+ | grep -vxF vala
+ )
+)
+makedepends_i686+=(gobject-introspection vala)
+makedepends_pentium4+=("${makedepends_i686[@]}")
+checkdepends=(
+ $(
+ printf '%s\n' "${checkdepends[@]}" \
+ | grep -vxF python-gobject
+ )
+) || true
+checkdepends_i686+=(python-gobject)
+checkdepends_pentium4+=("${checkdepends_i686[@]}")
+eval "$(
+ declare -f build \
+ | sed '
+ /DGOBJECT_INTROSPECTION/ {
+ h
+ s@^@[ "${CARCH}" = i486 ] || @
+ p
+ g
+ s@\(-DGOBJECT_INTROSPECTION=\)true@\1false@
+ s@\(-DICAL_GLIB_VAPI=\)true@\1false@
+ s@^@[ ! "${CARCH}" = i486 ] || @
+ }
+ '
+ declare -f check \
+ | sed '
+ 2 a [ ! "${CARCH}" = i486 ] || return 0
+ '
+)"