diff options
author | Erich Eckner <git@eckner.net> | 2019-11-17 15:57:43 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-17 15:57:43 +0100 |
commit | ce970d54641f2df0a72607b17fbd5b7454ce37f6 (patch) | |
tree | 6185d0ecb96bb26dfc8008af586df4c882da3c2e /extra/emacs | |
parent | 4b2c1ec9a0037980f7102a325acf09b2f5c26e7c (diff) | |
download | packages-ce970d54641f2df0a72607b17fbd5b7454ce37f6.tar.xz |
extra/emacs: make compilable on i486 by throwing out gtk and other x stuff
Diffstat (limited to 'extra/emacs')
-rw-r--r-- | extra/emacs/PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/emacs/PKGBUILD b/extra/emacs/PKGBUILD new file mode 100644 index 00000000..e1295496 --- /dev/null +++ b/extra/emacs/PKGBUILD @@ -0,0 +1,22 @@ +depends=( + $( + printf '%s\n' "${depends[@]}" \ + | grep -vxF librsvg \ + | grep -vxF libotf \ + | grep -vxF m17n-lib \ + | grep -vxF gtk3 \ + | grep -vxF libmagick6 + ) +) +depends_i686=(librscg libotf m17n-lib gtk3 libmagick6) +depends_pentium4=("${depends_i686[@]}") +if [ "${CARCH}" = 'i486' ]; then + eval "$( + declare -f build \ + | sed ' + ,\./configure, { + s/--with-x-toolkit=gtk3/--with-x-toolkit=no --with-jpeg=no --with-png=no --with-tiff=no --with-xft/ + } + ' + )" +fi |