2021-06-28 19:49:24 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-modules \
|
|
|
|
--with-xft \
|
|
|
|
--with-x-toolkit=gtk2 \
|
|
|
|
--without-dbus \
|
|
|
|
--without-gconf \
|
|
|
|
--without-gsettings \
|
|
|
|
--with-xpm=yes \
|
|
|
|
--with-gnutls=yes \
|
2021-07-24 00:17:19 -04:00
|
|
|
--with-json=yes \
|
|
|
|
--with-native-compilation
|
2021-06-28 19:49:24 -04:00
|
|
|
|
|
|
|
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$")
|
2021-07-19 20:10:52 -04:00
|
|
|
|
|
|
|
;; Augment ELPA.
|
|
|
|
(require 'package)
|
|
|
|
(add-to-list 'package-archives
|
|
|
|
'("melpa-stable" . "https://stable.melpa.org/packages/"))
|
|
|
|
|
|
|
|
;; Increase garbage collection during startup. Reduces boot times.
|
|
|
|
(setq startup/gc-cons-threshold gc-cons-threshold)
|
|
|
|
(setq gc-cons-threshold most-positive-fixnum)
|
|
|
|
(defun startup/reset-gc () (setq gc-cons-threshold startup/gc-cons-threshold))
|
|
|
|
(add-hook 'emacs-startup-hook 'startup/reset-gc)
|
|
|
|
|
2021-07-30 08:14:58 -04:00
|
|
|
;; Native-compile packages.
|
|
|
|
(setq package-native-compile t)
|
|
|
|
|
2021-06-28 19:49:24 -04:00
|
|
|
EOF
|
|
|
|
|
2021-07-29 18:15:26 -04:00
|
|
|
|
|
|
|
# Natively compile all the things!
|
|
|
|
make NATIVE_FULL_AOT=1
|
2021-06-28 19:49:24 -04:00
|
|
|
make DESTDIR="$1" install
|
|
|
|
|
|
|
|
rm -rf "$1/usr/lib/systemd"
|