diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,7 +1,7 @@ # Maintainer: Adrian Lopez <zeioth@hotmail.com> pkgname=chatgpt-shell-cli pkgver=0.1 -pkgrel=5 +pkgrel=6 pkgdesc="Use OpenAI's ChatGPT and DALL-E from the terminal." arch=(any) url="https://github.com/0xacx/chatGPT-shell-cli.git" @@ -13,11 +13,10 @@ source=("git+$url#commit=e47853176d2cc36602ca04507fd3b5525f623737") sha256sums=('SKIP') package() { - # Replace open image command with xdg-open for linux systems - if [[ "$OSTYPE" == "linux-gnu"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then - sed -i 's/open "\${image_url}"/xdg-open "\${image_url}"/g' "${srcdir}/chatGPT-shell-cli/chatgpt.sh" - fi + # 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/local/bin/chatgpt" + # Install + install -Dm755 "${srcdir}/chatGPT-shell-cli/chatgpt.sh" "${pkgdir}/usr/local/bin/chatgpt" + install -Dm755 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |