summaryrefslogtreecommitdiff
path: root/misc/chatgpt-shell-cli/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/chatgpt-shell-cli/Makefile')
-rw-r--r--misc/chatgpt-shell-cli/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/misc/chatgpt-shell-cli/Makefile b/misc/chatgpt-shell-cli/Makefile
index e0f10b1190a4..a22104f71249 100644
--- a/misc/chatgpt-shell-cli/Makefile
+++ b/misc/chatgpt-shell-cli/Makefile
@@ -15,7 +15,12 @@ RUN_DEPENDS= bash:shells/bash \
jq:textproc/jq \
xdg-open:devel/xdg-utils
-USES= magick:run shebangfix
+FLAVORS= x11 nox11
+FLAVOR?= ${FLAVORS:[1]}
+
+nox11_PKGNAMESUFFIX= -nox11
+
+USES= magick:${FLAVOR},run shebangfix
USE_GITHUB= yes
GH_ACCOUNT= 0xacx
@@ -30,7 +35,7 @@ NO_BUILD= yes
PLIST_FILES= bin/chatgpt
post-patch:
- ${REINPLACE_CMD} 's/open \("$${image_url}"\)/xdg-open \1/g' ${WRKSRC}/chatgpt.sh
+ ${REINPLACE_CMD} 's/open \("$${image_url}"\)/xdg-open \1/g' ${WRKSRC}/chatgpt.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/chatgpt.sh ${STAGEDIR}${PREFIX}/bin/chatgpt