# Maintainer: Flavr Apps <support@macreacher.app>
pkgname=macreacher
pkgver=1.0.0
pkgrel=1
pkgdesc="Reach your Mac from Linux: fast, end-to-end encrypted remote desktop for MacReacher Host"
arch=('any')
url="https://macreacher.app"
license=('LicenseRef-MacReacher')
depends=(
  'python' 'python-gobject' 'python-cryptography'
  'gtk4' 'libadwaita' 'libsecret'
  'gstreamer' 'gst-plugins-base' 'gst-plugins-bad' 'gst-libav' 'gst-plugin-gtk4'
  'pipewire'
)
optdepends=(
  'python-zeroconf: find Macs on your network automatically'
  'gst-plugin-va: hardware H.264 decoding on Intel and AMD GPUs'
  'python-av: software decoding fallback'
  'tailscale: reach your Mac away from home'
)
source=("macreacher-linux-$pkgver.tar.gz::https://macreacher.app/downloads/linux/macreacher-linux-$pkgver.tar.gz")
sha256sums=('25bb118993891317894eee4b281de6232c08f570855adc9028be76e4186d988d')

check() {
  cd "macreacher-linux-$pkgver"
  python -m unittest tests.test_swift_interop -q
}

package() {
  cd "macreacher-linux-$pkgver"
  make DESTDIR="$pkgdir" PREFIX=/usr install
}
