The process is in early stages and it will surely be improved in the future. Things to evaluate: whether to do cross-compilation or compile from macOS. There are toolchains in rustup, but since there are a lot of system libraries in place, the question is whether the process will work.
At the moment, just use macOS.
- Homebrew should be installed.
- Install Rust (suggestion: rustup)
- The following packages should be installed via Homebrew. They have a lot of
dependencies, so take your time.
meson
gtk4
gtksourceview5
(note: if this fails to install, runbrew install svn
first, although I hate having to make this suggestion).desktop-file-utils
pygobject3
- Before compiling, you have to export the following environment variable,
export GETTEXT_DIR=$(brew --prefix)/opt/gettext
, so that it can actually pick your gettext library. - Once you have the source code, you should be able to compile it using the same instructions in README.md.
To avoid installing a lot of dependencies in your system-wide Homebrew installation, you can have a separate Homebrew installation for building this application.
git clone https://github.com/Homebrew/brew homebrew
export PATH=homebrew/bin:$PATH
In fact, when making changes to this file, it should be done from a clean environment without system-wide Homebrew and only a local Homebrew installation, in order to avoid false positives due to dependencies not in this list that were accidentally installed.