From e7a5d4c1f2af954acacca17113d2b323b884c9f8 Mon Sep 17 00:00:00 2001 From: Henry Precheur Date: Sun, 17 Nov 2024 12:27:05 -0800 Subject: [PATCH] New package: aichat-0.23.0 --- srcpkgs/aichat/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/aichat/template diff --git a/srcpkgs/aichat/template b/srcpkgs/aichat/template new file mode 100644 index 00000000000000..2f8b7bf86e3c08 --- /dev/null +++ b/srcpkgs/aichat/template @@ -0,0 +1,26 @@ +# Template file for 'aichat' +pkgname=aichat +version=0.23.0 +revision=1 +build_style=cargo +build_helper=qemu +hostmakedepends="pkg-config" +makedepends="oniguruma-devel" +short_desc="All-in-one LLM Shell Assistant, Chat-REPL, RAG, AI Tools & Agents" +maintainer="Henry Precheur " +license="Apache-2.0 OR MIT" +homepage="https://github.com/sigoden/aichat" +distfiles="https://github.com/sigoden/aichat/archive/refs/tags/v${version}.tar.gz" +checksum=c96341fe4c2223da2e069f16561166e5f699085597c17cdb128e86c0947ac7f6 + +post_install() { + vlicense LICENSE-MIT + vlicense LICENSE-APACHE + + vmkdir usr/share/examples/${pkgname} + vcopy config.example.yaml usr/share/examples/${pkgname}/config.yaml + + for _shell in bash fish zsh; do + vcompletion "scripts/completions/aichat.$_shell" "$_shell" aichat + done +}