# Maintainer: Parley contributors pkgname=parley pkgver=0.1.0.dev0 pkgrel=1 pkgdesc='Local-first dictation tool for GNOME on Wayland' arch=('any') license=('GPL-3.0-or-later') depends=( 'ffmpeg' 'gtk4' 'libnotify' 'python' 'python-gobject' 'xdg-utils' ) makedepends=( 'git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' ) optdepends=( 'transcribe-cli: Parakeet transcription runtime (may also be installed manually)' ) source=("$pkgname::git+file://${startdir}/../..") sha256sums=('SKIP') build() { cd "$srcdir/$pkgname" python -m build --wheel --no-isolation } check() { cd "$srcdir/$pkgname" PYTHONPATH=src python -m unittest discover -s tests -v } package() { cd "$srcdir/$pkgname" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 data/systemd/parley.service \ "$pkgdir/usr/lib/systemd/user/parley.service" install -Dm644 data/dbus/org.parley.Transcription1.service \ "$pkgdir/usr/share/dbus-1/services/org.parley.Transcription1.service" install -Dm644 src/parley/interfaces/org.parley.Transcription1.xml \ "$pkgdir/usr/share/dbus-1/interfaces/org.parley.Transcription1.xml" }