summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db411372b9182a30ab575ed7c5530a4c06a6d818 (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
68
69
70
71
72
73
# Maintainer: Magi3r <magier dot mit dot f3erball at gmail dot com>
pkgname=nyarchassistant
pkgver=1.2.5
pkgrel=1
pkgdesc="Nyarch Assistant (Newelle Fork)"
arch=("any")
url="https://github.com/NyarchLinux/NyarchAssistant"
license=('GPL')
depends=(
  "python-edge-tts"
  "python-requests"
  "python-requests-toolbelt"
  "python-expandvars"
  "python-beautifulsoup4"
  "python-gobject"
	"python-livepng"
	"python-lxml-html-clean"
  "python-lxml"
  "python-hatch-fancy-pypi-readme"
  "python-hatchling"
	"python-newspaper"
	"python-openai"
	"python-pillow"
	"python-pyaudio"
	"python-pylatexenc"
  "python-tiktoken"
  "python-matplotlib"
  "python-markdownify"
  "python-mcp"
  "gtksourceview5"
	"vte4"
	"webkitgtk-6.0"
  "python-gtts"
  "python-model2vec"
)

optdepends=(
	"python-ollama: Ollama support"
	"ollama: Ollama auto serve"
	"python-google-generativeai: Google Gemini support"
  "python-speechrecognition: Speech recognition support"
)

makedepends=("meson")
source=(
    "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
)
sha256sums=('58520adbae748a214a03feff3cb44878768b0c5547690e70245ce06a6ea7f37b')

build() {
    cd "NyarchAssistant-$pkgver" || return

	if [ -d build ]; then
		rm -rf build
	fi
	arch-meson . build
	meson compile -C build
}

check() {
    cd "NyarchAssistant-$pkgver" || return
	meson test -C build --print-errorlogs || :
}

package() {
    cd "NyarchAssistant-$pkgver" || return

	meson install -C build --destdir "$pkgdir"
	chmod +x "$pkgdir/usr/bin/nyarchassistant"

	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
	install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}