# Maintainer: James Crockett
pkgname=nexil
pkgver=0.1.0
pkgrel=1
pkgdesc="Local LLM chat assistant for Intel hardware via OpenVINO"
arch=('any')
url="https://github.com/James-Crockett/nexil"
license=('Apache-2.0')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-hatchling')
optdepends=('intel-npu-driver: only needed for NPU inference, not required for CPU')
source=("$pkgname-$pkgver.tar.gz::https://github.com/James-Crockett/nexil/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')

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

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