summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeioth2023-03-19 18:26:32 +0100
committerZeioth2023-03-19 18:26:32 +0100
commit0b535e3fc675c07773e6451c26cbbe794fcc872e (patch)
treede75e74959eafa8b3ebff3dcebe8a716b1d2d31b
parent28432f6348845824f73b8060f9742b6689e15de6 (diff)
downloadaur-0b535e3fc675c07773e6451c26cbbe794fcc872e.tar.gz
INITIAL COMMIT STABLE VERSION
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50c0a4df1676..d1499abecce4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
-pkgbase = chatgpt-shell-cli-git
+pkgbase = chatgpt-shell-cli
pkgdesc = Use OpenAI's ChatGPT and DALL-E from the terminal.
- pkgver = 1.0.r.
+ pkgver = 0.1
pkgrel = 1
url = https://github.com/0xacx/chatGPT-shell-cli.git
arch = any
license = MIT
- provides = chatgpt-shell-cli-git
- conflicts = chatgpt-shell-cli
- source = git+https://github.com/0xacx/chatGPT-shell-cli.git
+ provides = chatgpt-shell-cli
+ conflicts = chatgpt-shell-cli-git
+ source = git+https://github.com/0xacx/chatGPT-shell-cli.git#commit=e47853176d2cc36602ca04507fd3b5525f623737
sha256sums = SKIP
-pkgname = chatgpt-shell-cli-git
+pkgname = chatgpt-shell-cli
diff --git a/PKGBUILD b/PKGBUILD
index 87fd29df4890..3d7de107984a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
# then please put 'unknown'.
# Maintainer: Adrian Lopez <zeioth@hotmail.com>
-pkgname=chatgpt-shell-cli-git
-pkgver=1.0.r.
+pkgname=chatgpt-shell-cli
+pkgver=0.1
pkgrel=1
epoch=
pkgdesc="Use OpenAI's ChatGPT and DALL-E from the terminal."
@@ -17,27 +17,20 @@ depends=()
makedepends=()
checkdepends=()
optdepends=()
-provides=(chatgpt-shell-cli-git)
-conflicts=(chatgpt-shell-cli)
+provides=(chatgpt-shell-cli)
+conflicts=(chatgpt-shell-cli-git)
replaces=()
backup=()
options=()
install=
changelog=
-source=("git+$url")
+source=("git+$url#commit=e47853176d2cc36602ca04507fd3b5525f623737")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()
-pkgver() {
- cd "${_pkgname}"
- printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
package() {
- # Compile
- cd "${srcdir}"/chatGPT-shell-cli
-
# Add it to /usr/local/bin to make it executable
+ cd "${srcdir}"/chatGPT-shell-cli
sudo cp "${srcdir}"/chatGPT-shell-cli/chatgpt.sh /usr/local/bin/chatgpt
}