pkgname=omarchy-steam-fex
pkgver=1.0.0
pkgrel=4
pkgdesc='Steam launcher with login workarounds for Apple Silicon using muvm and FEX'
arch=('aarch64')
url='https://github.com/omacom/omarchy-pkgs/tree/master/pkgbuilds/omarchy-steam-fex'
license=('MIT')
checkdepends=('python')
source=('omarchy-launch-steam' 'LICENSE' 'test-launcher.py')
sha256sums=('d00742b36ba3d630b43cfe5ab7ac665625e113651d487630e2e440535c8dab64'
            '717ba1949502290f8e47688ae2e323acd06c8ca47aec9f7596b15f678c1af4a2'
            '4584557d52d2a56d1edf082c0d0c0deaa3eed2959b02e6eb681c9dd36bc94f3f')

check() {
  python test-launcher.py
}

package() {
  # These are runtime-only dependencies; the Asahi stack is not needed to
  # assemble or test the scripts in a standard Arch Linux ARM builder.
  depends=('bash' 'coreutils' 'python' 'steam' 'muvm' 'FEX-Emu')

  install -Dm755 omarchy-launch-steam "$pkgdir/usr/bin/omarchy-launch-steam"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
