Skip to content
Snippets Groups Projects
Unverified Commit c7e31ef1 authored by Jimmy Olgeni's avatar Jimmy Olgeni Committed by Nicola Vitale
Browse files

misc/chatgpt-shell-cli: Add nox11 flavor

Add nox11 flavor, so that it can be installed/used on headless servers.

PR:		271880
Reported by:	olgeni
parent 4ca6b847
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment