Files
omarchy-pkgs/pkgbuilds/omarchy-emacs/PKGBUILD
T
a023cacf67 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) <noreply@anthropic.com>

* 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) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 09:10:32 -07:00

38 lines
1.6 KiB
Bash

# Maintainer: Scott Jones <scottajones@gmail.com>
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"
}