summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d029b21e30dcc080423d17bb4e6fdc8f56b6f185 (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
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-gpt-command-line
_name=${pkgname#python-}
_name=${_name//-/_}
pkgver=0.3.0
pkgrel=1
pkgdesc="Command-line interface for ChatGPT, Claude and Bard"
arch=(any)
url="https://github.com/kharvd/gpt-cli"
license=(MIT)
groups=()
depends=(python-anthropic python-attrs python-black python-cohere python-google-generativeai python-openai python-mistralai python-prompt_toolkit python-pytest python-pyyaml python-rich python-typing_extensions python-cohere)
makedepends=(python-build python-installer)
provides=(gpt)
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('23ea2b283db8b90231146354905c3fdf85f84651e6c23fdc2076f3656743b33f')

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

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}