aboutsummaryrefslogtreecommitdiff
path: root/testing/emacs/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-04-11 16:50:11 +0200
committerCem Keylan <cem@ckyln.com>2023-04-11 16:51:34 +0200
commitaed4f37ff5cebcf92fe94ffb47abc4598356a0bf (patch)
treec8739417a7b57eeaac74eb1a11a1ffadfe77b531 /testing/emacs/build
parent428f60ac5ba843c4aa4fdc8a32afd3a287025da8 (diff)
downloadrepository-aed4f37ff5cebcf92fe94ffb47abc4598356a0bf.tar.gz
emacs: add new package at 29.0.90 [TESTING]
Diffstat (limited to 'testing/emacs/build')
-rwxr-xr-xtesting/emacs/build29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/emacs/build b/testing/emacs/build
new file mode 100755
index 00000000..ff045c83
--- /dev/null
+++ b/testing/emacs/build
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --with-modules \
+ --with-x-toolkit=gtk3 \
+ --with-pgtk \
+ --with-dbus="$(cpt-list -C dbus yes no)" \
+ --without-libgmp \
+ --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"