# Maintainer: Raimo Geisel <c>
#
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur

pkgname=lazyllama-bin
pkgver=0.5.1
pkgrel=1
pkgdesc="A lightweight TUI client for Ollama with markdown support and smart scrolling"
url="https://github.com/Pommersche92/lazyllama"
license=('GPL-2.0-or-later')
arch=('x86_64')
provides=('lazyllama')
conflicts=('lazyllama')
source=("https://github.com/Pommersche92/lazyllama/releases/download/v$pkgver/lazyllama-$pkgver-x86_64.tar.gz")
sha256sums=('81da693f0e9b524e62c06dadd03bb2af028885349135c2ae7b0d7c74e4f163e2')

package() {
    install -Dm755 lazyllama "$pkgdir/usr/bin/lazyllama"
    
    # Install license and docs if available in tarball
    if [ -f LICENSE ]; then
        install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    fi
    if [ -f README.md ]; then
        install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
    fi
}
