blob: 847afed776b02851e3d8a29f2ab9c762d69d84b9 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Oliver Tzeng(曾嘉禾)<olivertzeg at proton dot me>
pkgname=nyarchassistant-git
pkgver=0.9b.r37.g423f051
pkgrel=1
pkgdesc="Nyarch Linux Assistant (NyarchAssistant Fork)"
arch=("any")
url="https://github.com/NyarchLinux/NyarchAssistant"
license=('GPL')
depends=(
"vte4"
"python-requests"
"python-pillow"
"python-requests-toolbelt"
"python-curl-cffi"
"python-gpt4all"
"python-gtts"
"python-expandvars"
"python-pyaudio"
"python-speechrecognition"
"python-openai"
"python-voicevox-client"
"python-livepng"
"python-wordllama"
"python-edge-tts"
"python-scikit-learn"
"python-pygame"
"python-pylatexenc"
)
optdepends=(
"python-ollama: Ollama support"
"ollama: Ollama auto serve"
"python-google-generativeai: Google Gemini support"
)
makedepends=("git" "meson")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
cd NyarchAssistant || return
_tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | head -n1)
_rev=$(git rev-list --count "$_tag"..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
}
build() {
if [ -d build ]; then
rm -rf build
fi
arch-meson NyarchAssistant build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs || :
}
package() {
meson install -C build --destdir "$pkgdir"
chmod +x "$pkgdir/usr/bin/nyarchassistant"
cd NyarchAssistant || return
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}
|