# Maintainer: Scott Jones # Ported from omarchy-mac/omarchy-pkgs-aarch64 pkgbuilds/omarchy-mac at 02ed7b250f7edcf7c5f748acaf7b21ef0a764e9d. pkgname=omarchy-mac # pkgver matches packages/omarchy-mac/version at _commit. Bump pkgrel to re-pin # or rebuild the same add-on version; reset it to 1 when pkgver increases. pkgver=0.1.0 pkgrel=5 pkgdesc='Apple Silicon configuration and support services for Omarchy' arch=('aarch64') url='https://github.com/omacom/omarchy-mac' license=('MIT') makedepends=('git' 'findutils') checkdepends=('diffutils' 'python' 'systemd') # An exact quattro-upstream commit, never a branch. _commit=b4a79d83d1144c4de90b29a2d8b4090090d7a9d8 source=("omarchy-mac::git+https://github.com/omacom/omarchy-mac.git#commit=${_commit}") sha256sums=('93676ce29791a29efe3b098fd8d129fa2248cd32d04253d9520a5b4c0697be6f') prepare() { # Tests and staging must not be able to read the surrounding desktop source. rm -rf "$srcdir/addon" cp -a "$srcdir/omarchy-mac/packages/omarchy-mac" "$srcdir/addon" [[ $(<"$srcdir/addon/version") == "$pkgver" ]] [[ $(git -C "$srcdir/omarchy-mac" rev-parse HEAD) == "$_commit" ]] } check() { "$srcdir/addon/test/all" } package() { # Runtime-only: the builder does not need the Omarchy desktop to stage or # test the add-on. depends=('omarchy' 'bash' 'coreutils' 'diffutils' 'grep' 'sed' 'gawk' 'systemd' 'pciutils' 'kmod' 'networkmanager' 'iwd' 'python' 'pipewire' 'pipewire-pulse' 'libpulse' 'wireplumber') "$srcdir/addon/install" "$pkgdir" install -Dm644 "$srcdir/addon/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 "$srcdir/addon/ORIGINS.md" "$pkgdir/usr/share/doc/$pkgname/ORIGINS.md" printf '%s\n' "$_commit" >"$pkgdir/usr/share/omarchy-mac/source-revision" }