blob: 00df420e136a1c112a446a7c8352b5cd8e108d89 (
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
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
pkgname=agent-cli
pkgver=0.103.0
pkgrel=1
pkgdesc="A suite of local AI-powered command-line tools"
license=('MIT')
arch=('any')
_url_pypi='https://pypi.org/project/agent-cli/'
_url_github='https://github.com/basnijholt/agent-cli'
url="${_url_github}"
_pypi_package=${pkgname}
_pypi_version=${pkgver}
provides=("${_pypi_package}")
replaces=("python-${pkgname}")
conflicts=("python-${pkgname}")
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'python-versioningit')
depends=('bash' 'python' 'uvicorn' 'python-onnxruntime' 'python-yaml' 'python-rich' 'python-openai' 'python-pydantic' 'python-httpx' 'python-numpy' 'python-dotenv' 'python-psutil' 'python-huggingface-hub' 'python-pyperclip' 'python-google-genai' 'python-sounddevice' 'python-click' 'python-typer' 'python-fastapi' 'python-watchfiles' 'python-transformers' 'python-wyoming' 'python-pydantic-ai-slim')
# source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${_pypi_version}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz::${_url_github}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('27820f6c553b112a59e063af2302d263ef0787f6af220f91ea400202889b2444')
build() {
cd "${srcdir}/${_pypi_package}-${_pypi_version}/"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_package}-${_pypi_version}/"
python -m installer --destdir="${pkgdir}" dist/*.whl
rm -rf "${pkgdir}/usr/bin/"{ag,agent}
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|