Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/poppler/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-07-07 08:54:08 +0200
committerErich Eckner <git@eckner.net>2020-07-07 08:54:08 +0200
commit778248161eb17b45efcdc93b15ead8ed24052add (patch)
tree197a7adf4a932dbbfc0c11c7aa929911231b23af /extra/poppler/PKGBUILD
parente4977b3a4cbfb8cd548051548bd9e36a7cb7ba5a (diff)
extra/poppler: add for i486 by removing gtk3 and qt5-base dependencies
Diffstat (limited to 'extra/poppler/PKGBUILD')
-rw-r--r--extra/poppler/PKGBUILD19
1 files changed, 19 insertions, 0 deletions
diff --git a/extra/poppler/PKGBUILD b/extra/poppler/PKGBUILD
new file mode 100644
index 00000000..dcff5d6e
--- /dev/null
+++ b/extra/poppler/PKGBUILD
@@ -0,0 +1,19 @@
+# no gtk3 and qt5-base on i486 (yet)
+# gtk3 seems to be auto-detected (there is a switch in build(), but it
+# does not need to be set to "OFF" apparently).
+makedepends=(
+ $(
+ printf '%s\n' "${makedepends[@]}" \
+ | grep -vxF gtk3 \
+ | grep -vxF qt5-base
+ )
+)
+makedepends_i686+=(gtk3 qt5base)
+makedepends_pentium4+=(gtk3 qt5base)
+
+eval "$(
+ declare -f package_poppler-qt5 \
+ | sed '
+ /^\s*cd build;/i [ "${CARCH}" != i486 ] || return 0
+ '
+)"