From f268ba27a8d739d91b589e09313d627d8ba4e007 Mon Sep 17 00:00:00 2001
From: Marty Oehme <contact@martyoeh.me>
Date: Sun, 16 Mar 2025 17:53:35 +0100
Subject: [PATCH] Add tgpt package

---
 README.md             |  2 +-
 srcpkgs/tgpt/template | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/tgpt/template

diff --git a/README.md b/README.md
index 6df2c77..f4feeb1 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ and I do not know enough about the xbps build system to make it easily possible.
 - [ ] tasklite
 - [ ] tu
 - [ ] <https://github.com/nushell/nufmt>
-- [ ] tgpt
+- [x] tgpt
 
 - [ ] impala (iwd TUI)
 - [ ] localsend:
diff --git a/srcpkgs/tgpt/template b/srcpkgs/tgpt/template
new file mode 100644
index 0000000..36a5224
--- /dev/null
+++ b/srcpkgs/tgpt/template
@@ -0,0 +1,20 @@
+# Template file for 'tgpt'
+pkgname=tgpt
+version=2.9.1
+revision=1
+build_style=go
+go_import_path="github.com/aandrew-me/tgpt/v2"
+short_desc="AI Chatbots in terminal without needing API keys"
+maintainer="Marty Oehme <contact@martyoeh.me>"
+license="GPL-3.0-only"
+homepage="https://github.com/aandrew-me/tgpt"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=05c2d2009789679fe1d744474783a853abc79d3dad6d14871402ee933397fe00
+
+do_check() { :; }
+
+post_install() {
+    vlicense LICENSE
+
+    vdoc README.md
+}