# Maintainer: Thorsten Foltz <thorsten.foltz@live.com>
pkgname=git-cai-cli
pkgver=0.1.1
pkgrel=1
pkgdesc="Use LLM to create git commit messages."
arch=('any')
url="https://github.com/thorstenfoltz/cai"
license=('MIT')
depends=('python' 'python-yaml' 'python-openai' 'python-google-genai')
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("https://files.pythonhosted.org/packages/e6/c3/99bb2d87c16628017468c9ae6dd18ee2e63644109150bee0450a9f22b83f/git_cai_cli-0.1.1.tar.gz")
sha256sums=('36fb55223ad430b7d3dc6bf60fd4e04f6ac567acee5546d5aa8c2df781061461')

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

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