aboutsummaryrefslogtreecommitdiff
path: root/testing/emacs/build
diff options
context:
space:
mode:
Diffstat (limited to 'testing/emacs/build')
-rwxr-xr-xtesting/emacs/build31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/emacs/build b/testing/emacs/build
new file mode 100755
index 00000000..7428c187
--- /dev/null
+++ b/testing/emacs/build
@@ -0,0 +1,31 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --with-modules \
+ --with-xft \
+ --with-x-toolkit=athena \
+ --without-toolkit-scroll-bars \
+ --without-dbus \
+ --without-gconf \
+ --without-gsettings \
+ --with-xpm=no \
+ --with-gnutls=yes
+
+mkdir -p "$1/usr/share/emacs/site-lisp"
+cat << EOF > "$1/usr/share/emacs/site-lisp/site-start.el"
+;; GnuTLS configuration
+;; In Carbs, CA certificates are installed to /etc/certificates
+(with-eval-after-load 'gnutls
+ (setq gnutls-verify-error t
+ gnutls-min-prime-bits 2048
+ gnutls-trustfiles '("/etc/certificates/cert.pem")
+))
+
+(setq-default shr-blocked-images ".*\.svg$")
+EOF
+
+make
+make DESTDIR="$1" install
+
+rm -rf "$1/usr/lib/systemd"