/emacs-gcc-pgtk

Dockerfile for building emacs.deb

Primary LanguageDockerfileMIT LicenseMIT

emacs-gcc-pgtk - Dockerfile for building emacs.deb with native-comp and pure GTK

Summary

This repository shows a Dockerfile to create a emacs deb package with native compilation and pure GTK for Ubuntu 20.10 and Ubuntu 21.04.

Notes:

  1. The deb package can be found in GitHub Action.
  2. The emacs source files are here.
  3. no xwidgets
  4. no imagemagick. Emacs now supports resizing and rotating of images without ImageMagick.
  5. all .el files are compiled. make NATIVE_FULL_AOT=1

The package is compiled with flags:

  • –with-native-compilation
  • –with-pgtk
  • –with-mailutils
  • –without-xwidgets
  • –with-modules
  • –with-json
  • –without-makeinfo
  • CFLAGS=”-O2 -pipe”

Installation 1: Use GitHub Actions

The deb package with this recipe is built by github and can be found in GitHub Action.

If the deb package is too old:

  1. fork the project
  2. In GitHub Actions allow and run manually the workflow.

Installation 2: Compile on your own computer

Requirements

  1. docker

Compilation

git clone https://github.com/konstare/emacs-gcc-pgtk
cd emacs-gcc-pgtk
./build.sh