From a023cacf6786bdec460bf3f21efc7366e02dbfbf Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Wed, 22 Jul 2026 12:10:32 -0400 Subject: [PATCH] Add omarchy-emacs (#118) * Add omarchy-emacs Emacs integration for Omarchy with automatic theme and font syncing, synced from the AUR (source: aur). Requested by @dhh in basecamp/omarchy#6329 so it can be installed from the Omarchy repo via the regular installer rather than relying on the AUR at install time. - AUR: https://aur.archlinux.org/packages/omarchy-emacs - Source: https://github.com/scottjones/omarchy-emacs Co-Authored-By: Claude Opus 4.8 (1M context) * Drop install scriptlet from omarchy-emacs (sync 1.8.9) Per review: user-side setup is invoked by the Omarchy installer, so the pacman post_install/post_upgrade scriptlet is redundant. Re-synced from AUR at 1.8.9, which removes it. Co-Authored-By: Claude Opus 4.8 (1M context) --------- Co-authored-by: Claude Opus 4.8 (1M context) --- pkgbuilds/omarchy-emacs/.omarchy/package.json | 4 ++ pkgbuilds/omarchy-emacs/PKGBUILD | 37 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgbuilds/omarchy-emacs/.omarchy/package.json create mode 100644 pkgbuilds/omarchy-emacs/PKGBUILD diff --git a/pkgbuilds/omarchy-emacs/.omarchy/package.json b/pkgbuilds/omarchy-emacs/.omarchy/package.json new file mode 100644 index 0000000..5b4e397 --- /dev/null +++ b/pkgbuilds/omarchy-emacs/.omarchy/package.json @@ -0,0 +1,4 @@ +{ + "source": "aur", + "upstream_commit": "46f40886f29132729267230ce35d21e02181096a" +} diff --git a/pkgbuilds/omarchy-emacs/PKGBUILD b/pkgbuilds/omarchy-emacs/PKGBUILD new file mode 100644 index 0000000..4a1985f --- /dev/null +++ b/pkgbuilds/omarchy-emacs/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Scott Jones +pkgname=omarchy-emacs +pkgver=1.8.9 +pkgrel=1 +pkgdesc="Emacs integration for Omarchy with automatic theme and font syncing" +arch=('any') +url="https://github.com/scottjones/omarchy-emacs" +license=('MIT') +depends=('emacs-wayland' 'bash') +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('9198ba31e334cd0c0f8661ad11d0cb856a1757cf4b93156abfc5a73c25797184') + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # Install config files + install -dm755 "$pkgdir/usr/share/omarchy-emacs/config/themes" + install -Dm644 config/init.el "$pkgdir/usr/share/omarchy-emacs/config/init.el" + install -Dm644 config/omarchy.el "$pkgdir/usr/share/omarchy-emacs/config/omarchy.el" + install -Dm644 config/shell-bashrc "$pkgdir/usr/share/omarchy-emacs/config/shell-bashrc" + install -Dm644 config/themes/omarchy-theme.el "$pkgdir/usr/share/omarchy-emacs/config/themes/omarchy-theme.el" + + # Install color template + install -Dm644 omarchy-colors.el.tpl "$pkgdir/usr/share/omarchy-emacs/omarchy-colors.el.tpl" + + # Install hooks + install -Dm755 hooks/font-set "$pkgdir/usr/share/omarchy-emacs/hooks/font-set" + install -Dm755 hooks/theme-set "$pkgdir/usr/share/omarchy-emacs/hooks/theme-set" + + # Install bin scripts to PATH + install -Dm755 bin/omarchy-emacs-setup "$pkgdir/usr/bin/omarchy-emacs-setup" + install -Dm755 bin/omarchy-restart-emacs "$pkgdir/usr/bin/omarchy-restart-emacs" + install -Dm755 bin/omarchy-install-emacs "$pkgdir/usr/bin/omarchy-install-emacs" + + # Install license + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}