From 5c0422afc2fcf3aef7838f136f65eec2dd92a0dd Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sat, 25 Oct 2025 15:35:22 +0000 Subject: [PATCH] tgpt: bump to 2.10.1 (#27003) --- packages/tgpt/0001-disable-clipboard.patch | 27 ++++++++++++++++++++++ packages/tgpt/build.sh | 7 +++--- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 packages/tgpt/0001-disable-clipboard.patch diff --git a/packages/tgpt/0001-disable-clipboard.patch b/packages/tgpt/0001-disable-clipboard.patch new file mode 100644 index 0000000000..7279c5caea --- /dev/null +++ b/packages/tgpt/0001-disable-clipboard.patch @@ -0,0 +1,27 @@ +`golang.design/x/clipboard` requires JNI + +--- a/src/helper/helper.go ++++ b/src/helper/helper.go +@@ -17,7 +17,6 @@ + "github.com/aandrew-me/tgpt/v2/src/structs" + http "github.com/bogdanfinn/fhttp" + "github.com/fatih/color" +- "golang.design/x/clipboard" + + "github.com/olekukonko/ts" + +@@ -774,14 +773,6 @@ + + if userInput == "y" || userInput == "" { + ExecuteCommand(ShellName, ShellOptions, fullText) +- } else { +- err := clipboard.Init() +- +- if err == nil { +- clipboard.Write(clipboard.FmtText, []byte(fullText)) +- +- fmt.Println("Copied command to clipboard") +- } + } + } + } diff --git a/packages/tgpt/build.sh b/packages/tgpt/build.sh index 61460d26f1..c9dfd65b96 100644 --- a/packages/tgpt/build.sh +++ b/packages/tgpt/build.sh @@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/aandrew-me/tgpt TERMUX_PKG_DESCRIPTION="AI Chatbots in terminal without needing API keys" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION="2.10.0" -TERMUX_PKG_REVISION=1 +TERMUX_PKG_VERSION="2.10.1" TERMUX_PKG_SRCURL=https://github.com/aandrew-me/tgpt/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=0e312176908d581eeb7f0df8fcd0524a4aa4702029d50f553f0f75d6c15bc0d9 +TERMUX_PKG_SHA256=a0fc596fd2b8aabac222e22e96fc02709e185031e31a15b522f4c5c59db892d9 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_BUILD_IN_SRC=true @@ -14,7 +13,7 @@ termux_step_pre_configure() { } termux_step_make() { - go build + go build -trimpath -ldflags="-s -w" } termux_step_make_install() {