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: 3c435218c1b43ba681417559530e0984d5f7c592

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index ea8d0d9..4995fb4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
-pkgbase = tgpt-bin
-	pkgdesc = ChatGPT in terminal without needing API keys
-	pkgver = 1.2.1
-	pkgrel = 1
-	url = https://github.com/aandrew-me/tgpt
-	arch = x86_64
-	arch = aarch64
-	arch = i386
-	arch = i686
-	license = GPL-3.0
-	conflicts = tgpt
-	conflicts = tgpt-git
-	source = https://github.com/aandrew-me/tgpt/releases/download/v1.2.1/tgpt-linux-amd64
-	md5sums = SKIP
-
+generated-by = makedeb
 pkgname = tgpt-bin
+pkgbase = tgpt-bin
+pkgdesc = ChatGPT in terminal without needing API keys
+pkgrel = 0
+pkgver = 1.2.1
+url = https://github.com/aandrew-me/tgpt
+arch = amd64
+arch = arm64
+arch = i386
+conflicts = tgpt
+conflicts = tgpt-git
+license = GPL-3.0
+provides = tgpt
+source = https://github.com/aandrew-me/tgpt/releases/download/v1.2.1/tgpt-linux-amd64
+b2sums = c812e296c9a17d107cb6cd403952f0565ddc771b438ef4a7dc78c526a92118f0c2e1c4f6e24e804f79c69f501dcff6e8201ec9fd55e83d9f6cdcd7ea513246d8
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0b3d81d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+tgpt*
diff --git a/PKGBUILD b/PKGBUILD
index 22566a0..b22c521 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,51 +1,18 @@
-# Maintainer: George Woodall <georgewoodall82@gmail.com>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: George Woodall (AUR) <georgewoodall82@gmail.com>
 pkgname=tgpt-bin
 pkgver=1.2.1
-pkgrel=1
+pkgrel=0
 pkgdesc="ChatGPT in terminal without needing API keys"
-arch=("x86_64" "aarch64" "i386" "i686")
+arch=("amd64" "arm64" "i386")
 url="https://github.com/aandrew-me/tgpt"
 license=('GPL-3.0')
 conflicts=('tgpt' 'tgpt-git')
-#makedepends=('')
-if [ $CARCH == "x86_64" ]
-then
-  	ARCHY=amd64
-elif [ $CARCH == "aarch64" ]
-then
-  	ARCHY=arm64
-elif [ $CARCH == "i386" || $CARCH == "i686" ]
-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() {
-#	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//'
-#}
+provides=('tgpt')
+source=("https://github.com/aandrew-me/tgpt/releases/download/v${pkgver}/tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE}")
+b2sums=('c812e296c9a17d107cb6cd403952f0565ddc771b438ef4a7dc78c526a92118f0c2e1c4f6e24e804f79c69f501dcff6e8201ec9fd55e83d9f6cdcd7ea513246d8')
 
 package() {
     cd "$srcdir"
-    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"
+    install -Dm755 tgpt-linux-${MAKEDEB_DPKG_ARCHITECTURE} "$pkgdir/usr/bin/tgpt"
 }