summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeioth2023-03-19 18:55:56 +0100
committerZeioth2023-03-19 18:55:56 +0100
commit7595fffc5193de1d213dd4ec6b44b46c4f320705 (patch)
treeac977f1295762f9b869e2cb8caf1f006e47652f2
parent0b535e3fc675c07773e6451c26cbbe794fcc872e (diff)
downloadaur-7595fffc5193de1d213dd4ec6b44b46c4f320705.tar.gz
Now we use 'install'
as pointed out by txtsd
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 3 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d1499abecce4..fbd5a9288a70 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = chatgpt-shell-cli
pkgdesc = Use OpenAI's ChatGPT and DALL-E from the terminal.
pkgver = 0.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/0xacx/chatGPT-shell-cli.git
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 3d7de107984a..32b5f44300b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,7 @@
-# This is an example PKGBUILD file. Use this as a start to creating your own,
-# and remove these comments. For more information, see 'man PKGBUILD'.
-# NOTE: Please fill out the license field for your package! If it is unknown,
-# then please put 'unknown'.
-
# Maintainer: Adrian Lopez <zeioth@hotmail.com>
pkgname=chatgpt-shell-cli
pkgver=0.1
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="Use OpenAI's ChatGPT and DALL-E from the terminal."
arch=(any)
@@ -30,7 +25,5 @@ sha256sums=('SKIP')
validpgpkeys=()
package() {
- # 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
+ install -Dm755 "${srcdir}/chatGPT-shell-cli/chatgpt.sh" "${pkgdir}/usr/local/bin/chatgpt"
}