blob: 8718009206d256413b39855e781ddbeaa6b2dd38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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"
}
|