diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 12 insertions, 19 deletions
@@ -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 @@ -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 } |