A_OS/ports/official/extra/sys/c-gnu-emacs/build

39 lines
820 B
Plaintext
Raw Normal View History

2024-05-22 05:29:02 -04:00
#!/bin/sh -e
./configure \
--prefix=/usr \
--without-gif \
--without-tiff \
--without-dbus \
--without-gconf \
--without-gsettings \
--without-rsvg \
--with-gnutls=yes \
--with-modules \
--with-x-toolkit=lucid
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
# Disable ASLR for the build procedure, as it can lead to seg faults.
case "$(uname -m)" in
x86_64) _arch=linux64 ;;
i*86) _arch=linux32 ;;
esac
make
make install
rm -rf "$1/usr/lib/systemd"