makedeb
ChatGPT in terminal without needing API keys
Click here to go back to the commit logs for tgpt-bin.
Hash: 0c8a9566d99f6eeb02918682e54c13abecf26cf8
Message: 2.8.3
diff --git a/.SRCINFO b/.SRCINFO
index b0bcc34..cd5f578 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,14 +3,21 @@ pkgname = tgpt-bin
pkgbase = tgpt-bin
pkgdesc = ChatGPT in terminal without needing API keys
pkgrel = 0
-pkgver = 2.8.2
+pkgver = 2.8.3
url = https://github.com/aandrew-me/tgpt
arch = amd64
-arch = arm64
arch = i386
+arch = arm64
+arch = arm
conflicts = tgpt
conflicts = tgpt-git
license = GPL-3.0
provides = tgpt
-source = tgpt-amd64-2.8.2::https://github.com/aandrew-me/tgpt/releases/download/v2.8.2/tgpt-linux-amd64
-sha256sums = cd781f605a62ae178bedc7e2c7c5f2e778a1436d333c3533b7f55de4655f315d
+source_amd64 = tgpt-amd64-2.8.3::https://github.com/aandrew-me/tgpt/releases/download/v2.8.3/tgpt-linux-amd64
+source_arm = tgpt-amd64-2.8.3::https://github.com/aandrew-me/tgpt/releases/download/v2.8.3/tgpt-linux-amd64
+source_arm64 = tgpt-amd64-2.8.3::https://github.com/aandrew-me/tgpt/releases/download/v2.8.3/tgpt-linux-amd64
+source_i386 = tgpt-amd64-2.8.3::https://github.com/aandrew-me/tgpt/releases/download/v2.8.3/tgpt-linux-amd64
+sha256sums_amd64 = f94855e8270a05b61c149cc56a52209a8cec4a262eebc237ee826836321f414f
+sha256sums_arm = 33d7567df81492774067d9e047602595f4844efff6bfec8a827498cdf63dd8a3
+sha256sums_arm64 = b373985308f49b542d86cf9b3fda40950abb6af55e7a8b5b46bb6580bce74f78
+sha256sums_i386 = b5fb8ea03177bff9076713cff5d04812dc4f407caa5907a7b6489a0e61186669
diff --git a/PKGBUILD b/PKGBUILD
index c687d37..f73f75f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,22 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: George Woodall (AUR) <georgewoodall82@gmail.com>
pkgname=tgpt-bin
-pkgver=2.8.2
+pkgver="2.8.3"
pkgrel=0
pkgdesc="ChatGPT in terminal without needing API keys"
-arch=("amd64" "arm64" "i386")
+arch=("amd64" "i386" "arm64" "arm")
url="https://github.com/aandrew-me/tgpt"
license=('GPL-3.0')
conflicts=('tgpt' 'tgpt-git')
provides=('tgpt')
-source=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
-#wget -o /dev/null -O- https://github.com/aandrew-me/tgpt/releases/tag/v2.8.2 | grep "tgpt-linux-amd64" | cut -d ' ' -f 1
-sha256sums=('cd781f605a62ae178bedc7e2c7c5f2e778a1436d333c3533b7f55de4655f315d')
+source_amd64=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
+source_i386=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
+source_arm64=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
+source_arm=("tgpt-${MAKEDEB_DPKG_ARCHITECTURE}-${pkgver}::https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
+sha256sums_amd64=('f94855e8270a05b61c149cc56a52209a8cec4a262eebc237ee826836321f414f')
+sha256sums_i386=('b5fb8ea03177bff9076713cff5d04812dc4f407caa5907a7b6489a0e61186669')
+sha256sums_arm64=('b373985308f49b542d86cf9b3fda40950abb6af55e7a8b5b46bb6580bce74f78')
+sha256sums_arm=('33d7567df81492774067d9e047602595f4844efff6bfec8a827498cdf63dd8a3')
package() {
cd "$srcdir"
diff --git a/update b/update
new file mode 100755
index 0000000..6aab2be
--- /dev/null
+++ b/update
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+page="$(wget -o /dev/null -O- https://github.com/aandrew-me/tgpt/releases/latest)"
+
+version="$(echo "$page" | grep "<title>Release tgpt" | sed 's/.*Release tgpt //;s/ ยท .*//')"
+echo "$version"
+
+hasharch="$(echo "$page" | grep "tgpt-linux")"
+echo "$hasharch"
+
+hashamd64="$(echo "$hasharch" | grep -m 1 amd64$ | cut -d ' ' -f 1)"
+hashi386="$(echo "$hasharch" | grep i386$ | cut -d ' ' -f 1)"
+hasharm64="$(echo "$hasharch" | grep arm64$ | cut -d ' ' -f 1)"
+hasharm="$(echo "$hasharch" | grep arm$ | cut -d ' ' -f 1)"
+
+sed -i "s!pkgver=.*!pkgver=\"$version\"!;s!sha256sums_amd64=.*!sha256sums_amd64=\(\'$hashamd64\'\)!;s!sha256sums_i386=.*!sha256sums_i386=\(\'$hashi386\'\)!;s!sha256sums_arm64=.*!sha256sums_arm64=\(\'$hasharm64\'\)!;s!sha256sums_arm=.*!sha256sums_arm=\(\'$hasharm\'\)!" PKGBUILD