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: 60203ed715e4d8f20930d4aedf39225e973e0cae

Message: useful commit message

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 95da3d8..2d74297 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = tgpt-bin
 	pkgdesc = ChatGPT in terminal without needing API keys
 	pkgver = 1.2.0
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/aandrew-me/tgpt
 	arch = x86_64
 	arch = aarch64
diff --git a/PKGBUILD b/PKGBUILD
index a73d524..2f76a05 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,26 @@
 # Maintainer: George Woodall <georgewoodall82@gmail.com>
 pkgname=tgpt-bin
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc="ChatGPT in terminal without needing API keys"
 arch=("x86_64" "aarch64" "i386")
 url="https://github.com/aandrew-me/tgpt"
 license=('GPL-3.0')
 #makedepends=('')
-source=("https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-amd64")
+if [ $CARCH == "x86_64" ]
+then
+  	ARCHY=amd64
+elif [ $CARCH == "aarch64" ]
+then
+  	ARCHY=arm64
+elif [ $CARCH == "i386" ]
+then
+	ARCHY=i386
+else
+	echo $CARCH is unsupported
+	exit
+fi
+source=("https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${ARCHY}")
 md5sums=('SKIP')
 
 #pkgver() {