makedeb
ChatGPT in terminal without needing API keys
Click here to go back to the commit logs for tgpt-bin.
Hash: 5787f22b72833268d808bfd755fe4e5a9b092508
Message: useful commit message
diff --git a/.SRCINFO b/.SRCINFO
index b6210c3..95da3d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,8 @@ pkgbase = tgpt-bin
pkgrel = 1
url = https://github.com/aandrew-me/tgpt
arch = x86_64
+ arch = aarch64
+ arch = i386
license = GPL-3.0
source = https://github.com/aandrew-me/tgpt/releases/download/v1.2.0/tgpt-linux-amd64
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 1b230c6..a73d524 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ pkgname=tgpt-bin
pkgver=1.2.0
pkgrel=1
pkgdesc="ChatGPT in terminal without needing API keys"
-arch=("x86_64")
+arch=("x86_64" "aarch64" "i386")
url="https://github.com/aandrew-me/tgpt"
license=('GPL-3.0')
#makedepends=('')
@@ -20,5 +20,18 @@ md5sums=('SKIP')
package() {
cd "$srcdir"
- install -Dm755 tgpt-linux-amd64 "$pkgdir/usr/bin/tgpt"
+ 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
+ install -Dm755 tgpt-linux-${ARCHY} "$pkgdir/usr/bin/tgpt"
}