pkgname=omarchy-steam-fex
pkgver=1.0.0
pkgrel=2
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=('d89559ef88b3589e7d972b44a4a29e418605542f44f2756afd24ed3ce3227609'
            '717ba1949502290f8e47688ae2e323acd06c8ca47aec9f7596b15f678c1af4a2'
            '1d31b9ed09292b79dc86d9d4b3fff01d19e8210fdc5e3b13e78b846671808ed5')

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"
}
