30 lines
657 B
Plaintext
30 lines
657 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--with-modules \
|
||
|
--without-dbus \
|
||
|
--without-gconf \
|
||
|
--without-gsettings \
|
||
|
--with-gnutls=no \
|
||
|
--with-json=no \
|
||
|
--with-native-compilation
|
||
|
|
||
|
mkdir -p "$1/usr/share/emacs/site-lisp"
|
||
|
cat << EOF > "$1/usr/share/emacs/site-lisp/site-start.el"
|
||
|
;; Better security defaults
|
||
|
(with-eval-after-load 'gnutls
|
||
|
(setq
|
||
|
gnutls-verify-error t
|
||
|
gnutls-min-prime-bits 2048
|
||
|
gnutls-trustfiles '("/etc/ssl/cert.pem")))
|
||
|
|
||
|
;; Needed unless KISS Linux gains librsvg support
|
||
|
(setq-default shr-blocked-images ".*\.svg$")
|
||
|
EOF
|
||
|
|
||
|
make NATIVE_FULL_AOT=1
|
||
|
make DESTDIR="$1" install
|
||
|
|
||
|
rm -rf "$1/usr/lib/systemd"
|