makedeb


tgpt-bin 2.8.2-0


ChatGPT in terminal without needing API keys

Click here to go back to the commit logs for tgpt-bin.

Commit:


Hash: e6a86ab9a11566c635474366df7f2af1d877e4bf

Message: useful commit message

Diff


diff --git a/PKGBUILD b/PKGBUILD
index 99b17bb..ddda15c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,14 @@ license=('GPL-3.0')
 source=("https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-amd64")
 md5sums=('SKIP')
 
+pkgver() {
+	cd "$srcdir"
+	rm -rf tgpt
+	git clone --no-checkout https://github.com/aandrew-me/tgpt
+	cd tgpt
+	git describe --tags --abbrev=0 | sed 's/^v//'
+}
+
 package() {
     cd "$srcdir"
     install -Dm755 tgpt-linux-amd64 "$pkgdir/usr/bin/tgpt"