summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42d951df4444e3f5ca92f8514fc387babd4bbb22 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Maintainer: Oskar Gerlicz Kowalczuk <oskar@gerlicz.space>
# Contributor: Aseem Athale <athaleaseem@gmail.com>

_pkgname=open-webui
pkgname=${_pkgname}-no-venv
pkgver=0.8.8
pkgrel=4
pkgdesc="Web UI and OpenAI API for various LLM runners, including Ollama, built without creating virtualenv"
arch=('any')
url="https://github.com/open-webui/open-webui"
license=('BSD-3-Clause')
backup=("etc/conf.d/$_pkgname")
depends=(
  python
  python-aiocache
  python-aiofiles
  python-aiohttp
  python-alembic
  python-apscheduler
  python-argon2-cffi
  python-asgiref
  python-authlib
  python-fastapi
  python-bcrypt
  python-beautifulsoup4
  python-black
  python-boto3
  python-brotli
  python-chromadb
  python-cryptography
  python-ddgs
  python-dotenv
  python-faster-whisper
  python-fpdf2
  python-ftfy
  python-google-cloud-storage
  python-httpx
  python-itsdangerous
  python-jose
  python-langchain
  python-langchain-classic
  python-langchain-community
  python-langchain-text-splitters
  python-ldap3
  python-loguru
  python-markdown
  python-mcp
  python-mimeparse
  python-multipart
  python-nltk
  python-numpy
  python-onnxruntime
  python-openpyxl
  python-opencv
  python-pandas
  python-peewee
  python-peewee-migrate
  python-pillow
  python-psutil
  python-pydantic
  python-pydub
  python-pyarrow
  python-pycrdt
  python-pymdown-extensions
  python-pymysql
  python-pypdf
  python-python-pptx
  python-pytube
  python-pytz
  python-rapidocr-onnxruntime
  python-redis
  python-requests
  python-restrictedpython
  python-sentence-transformers
  python-sentencepiece
  python-socketio
  python-soundfile
  python-sqlalchemy
  python-starlette
  python-starlette-compress
  python-starsessions
  python-tiktoken
  python-typer
  python-typing_extensions
  python-unstructured
  python-validators
  python-xlrd
  python-youtube-transcript-api
  uvicorn
)
makedepends=(
  git
  nodejs
  npm
  python-build
  python-hatchling
  python-installer
  python-wheel
)

optdepends=(
  'ollama: local LLM runtime'
  'python-azure-ai-documentintelligence: Azure Document Intelligence loader support'
  'python-azure-identity: Azure authentication and storage integrations'
  'python-azure-storage-blob: Azure blob storage support'
  'python-firecrawl-py: Firecrawl-backed web retrieval'
  'python-google-api-python-client: Google service integrations'
  'python-google-auth-httplib2: Google service integrations'
  'python-google-auth-oauthlib: Google service integrations'
  'python-googleapis-common-protos: Google service integrations'
  'python-msoffcrypto-tool: encrypted Office document ingestion'
  'python-opensearch-py: OpenSearch vector backend support'
  'python-pgvector: pgvector backend support'
  'python-playwright: Playwright-backed web loader'
  'python-pyxlsb: XLSB document ingestion'
  'python-qdrant-client: Qdrant backend support'
  'python-weaviate-client: Weaviate backend support'
  'tika-server: document parsing'
)

conflicts=('open-webui' 'open-webui-git')
provides=('open-webui')

source=(
  "git+https://github.com/open-webui/open-webui.git#tag=v$pkgver"
  "open-webui.service"
  "open-webui.conf"
)

sha256sums=('SKIP' 'SKIP' 'SKIP')

build() {
  cd "$srcdir/$_pkgname"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_pkgname"

  install -Dm644 "$srcdir/$_pkgname.service" \
    "$pkgdir/usr/lib/systemd/system/$_pkgname.service"

  install -Dm644 "$srcdir/$_pkgname.conf" \
    "$pkgdir/etc/conf.d/$_pkgname"

  install -Dm644 LICENSE \
    "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"

  python -m installer --destdir="$pkgdir" dist/*.whl
}