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
This commit is contained in:
Jimmy Olgeni 2023-06-04 17:28:08 +02:00 committed by Nicola Vitale
parent 4ca6b84706
commit c7e31ef1e1
No known key found for this signature in database
GPG key ID: A51E190C4C0808D0

View file

@ -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