mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-13 21:30:52 +00:00
tgpt: bump to 2.10.1 (#27003)
This commit is contained in:
27
packages/tgpt/0001-disable-clipboard.patch
Normal file
27
packages/tgpt/0001-disable-clipboard.patch
Normal file
@@ -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")
|
||||
- }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user