summaryrefslogtreecommitdiff
path: root/opt/emacs/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/emacs/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/emacs/MAKEPKG')
-rw-r--r--opt/emacs/MAKEPKG60
1 files changed, 60 insertions, 0 deletions
diff --git a/opt/emacs/MAKEPKG b/opt/emacs/MAKEPKG
new file mode 100644
index 0000000..72c8d7f
--- /dev/null
+++ b/opt/emacs/MAKEPKG
@@ -0,0 +1,60 @@
+#!/bin/mkpkg
+# description: The extensible, customizable, self-documenting text editor
+# url: https://www.gnu.org/software/emacs/
+
+name=emacs
+version=31.1
+release=1
+depends=(gtk3 cairo pango harfbuzz gdk-pixbuf giflib libjpeg-turbo libpng tiff
+ libxml2 ncurses zlib glib gdk-pixbuf libxkbcommon gnutls wayland
+ wayland-protocols dbus)
+makedeps=()
+source=(https://ftp.gnu.org/gnu/emacs/emacs-$version.tar.xz)
+sha256sums=(
+ "1da5790d9580c81932b5bf700633114468da7b3412d69faa767daebf974f4586"
+)
+
+build() {
+ cd $name-$version
+
+ CONFIG_SHELL=/bin/bash ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-pgtk \
+ --with-cairo \
+ --with-harfbuzz \
+ --with-libxml2 \
+ --with-png \
+ --with-jpeg \
+ --with-gif \
+ --with-tiff \
+ --with-zlib \
+ --with-xwidgets=no \
+ --with-tree-sitter=ifavailable \
+ --with-gnutls \
+ --with-dbus \
+ --without-x \
+ --without-gconf \
+ --without-gsettings \
+ --without-gpm \
+ --without-kerberos \
+ --without-selinux \
+ --without-native-compilation \
+ --without-imagemagick \
+ CC=clang \
+ CXX=clang++ \
+ CFLAGS="$CFLAGS" \
+ CXXFLAGS="$CXXFLAGS" \
+ LDFLAGS="$LDFLAGS -fuse-ld=lld"
+
+ make -j$(nproc)
+ make DESTDIR=$PKG install
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh