Package Details: chatgpt-shell-cli-git 1.0.r161.ea41590-2

Git Clone URL: https://aur.archlinux.org/chatgpt-shell-cli-git.git (read-only, click to copy)
Package Base: chatgpt-shell-cli-git
Description: Use OpenAI's ChatGPT and DALL-E from the terminal.
Upstream URL: https://github.com/0xacx/chatGPT-shell-cli.git
Keywords: chat chatgpt cli dali e-dali gpt shell
Licenses: MIT
Conflicts: chatgpt-shell-cli
Submitter: Zeioth
Maintainer: Zeioth
Last Packager: Zeioth
Votes: 1
Popularity: 0.000002
First Submitted: 2023-03-19 17:17 (UTC)
Last Updated: 2023-10-15 02:39 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

Zeioth commented on 2023-10-15 02:40 (UTC)

Done!

malmerri commented on 2023-06-04 15:48 (UTC)

@sekret from the link: "Do not add pkgname to the provides array, as it is done automatically." Makes sense, thanks for the link. So just remove it @Zeoith.

sekret commented on 2023-06-04 11:17 (UTC)

The provides variable doesn't make sense here… Of course the package provides itself!

Please read https://wiki.archlinux.org/title/PKGBUILD#provides (chapters 5.1 to 5.3)

Zeioth commented on 2023-03-31 11:11 (UTC)

Hey thank you for your contribution @malmerri. I added you as contributor.

malmerri commented on 2023-03-31 05:18 (UTC) (edited on 2023-03-31 05:51 (UTC) by malmerri)

Thanks for taking the time to package this. Your PKGBUILD seems to have some syntax errors: it seems to be missing the _pkgname variable, does not define git as a makedepend, and does not use the $srcdir variable. I corrected these issues below, and the PKGBUILD below seems to work with a clean chroot:

# Maintainer: Adrian Lopez <zeioth@hotmail.com>
pkgname=chatgpt-shell-cli-git
_pkgname=chatGPT-shell-cli
pkgver=1.0.r161.ea41590
pkgrel=1
pkgdesc="Use OpenAI's ChatGPT and DALL-E from the terminal."
arch=(any)
url="https://github.com/0xacx/chatGPT-shell-cli.git"
license=('MIT')
depends=(jq curl)
makedepends=('git')
provides=(chatgpt-shell-cli-git)
conflicts=(chatgpt-shell-cli)
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${_pkgname}"
  printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  # Instead of using the provided install.sh, we just add this line for GNU Linux
  sed -i 's/open "\${image_url}"/xdg-open "\${image_url}"/g' "${srcdir}/chatGPT-shell-cli/chatgpt.sh"

  # Install
  install -Dm755 "${srcdir}/chatGPT-shell-cli/chatgpt.sh" "${pkgdir}/usr/bin/chatgpt"
  install -Dm644 "${srcdir}/chatGPT-shell-cli//LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

malmerri commented on 2023-03-31 04:13 (UTC)

Not sure if this is on my end, but when I try to build this in a clean chroot I get: ERROR: Cannot find the git package needed to handle git sources.