app-misc/chatgpt-desktop: new package, add 26.803.81509
Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
4f3fa81ec6
commit
cff9afd42c
6 files changed
+165
-1
No files matched your search
@@ -505,6 +505,15 @@ pkg = "claude-desktop"
|
||||
github_account = "zakkaus"
|
||||
autobump = true
|
||||
|
||||
["app-misc/chatgpt-desktop"]
|
||||
source = "apt"
|
||||
mirror = "https://persistent.oaistatic.com/codex-app-prod/linux/deb"
|
||||
suite = "stable"
|
||||
repo = "main"
|
||||
pkg = "chatgpt"
|
||||
github_account = "zakkaus"
|
||||
autobump = true
|
||||
|
||||
["app-misc/codex-auth"]
|
||||
source = "github"
|
||||
github = "Loongphy/codex-auth"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
DIST chatgpt-desktop-26.803.81509-amd64.deb 349937362 BLAKE2B d0e9aed07125853969dea176d425163f305082c474c217506e104c7853b5d6a4dd48d414da9101503ba97636087f59dd578da15cf46f3064bdab4a15496d7125 SHA512 c1a7ad603f28c8d8f8d68a9b6cd79773b2b4a0f4d78a70ead376eff968539cf3fba81c57fc050f9782de6c507a77c6c8a5e932f11114b8819444b77f10b27169
|
||||
DIST chatgpt-desktop-26.803.81509-arm64.deb 321468486 BLAKE2B 2c003a923c374106b09fe64ff8b85d2ad409099856a7802b72dd9cb850f39ede5a92f7f7e15cbd0e16cb7d5758ac5e3962cce11b4a29c35697e762b624dbc999 SHA512 767692c218f5ad9f23289f0a0f2d0c9dcb2855738bb88d9818ff2000642ae1be09837d17c2a599b0b40283060af07fecd9c905229c4f3b11de9375aba56de74f
|
||||
@@ -0,0 +1,123 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop optfeature pax-utils unpacker xdg
|
||||
|
||||
DESCRIPTION="Desktop application for ChatGPT and Codex"
|
||||
HOMEPAGE="https://chatgpt.com/download/"
|
||||
SRC_URI="
|
||||
amd64? (
|
||||
https://persistent.oaistatic.com/codex-app-prod/linux/deb/pool/main/c/chatgpt/chatgpt_${PV}_amd64.deb
|
||||
-> ${P}-amd64.deb
|
||||
)
|
||||
arm64? (
|
||||
https://persistent.oaistatic.com/codex-app-prod/linux/deb/pool/main/c/chatgpt/chatgpt_${PV}_arm64.deb
|
||||
-> ${P}-arm64.deb
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="ChatGPT-Desktop"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
IUSE="apparmor qt6 wayland"
|
||||
RESTRICT="bindist mirror strip"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
app-misc/ca-certificates
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa[gbm(+)]
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
sys-libs/glibc
|
||||
virtual/libudev
|
||||
virtual/libusb:1
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libdrm
|
||||
x11-libs/libnotify
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/libXrandr
|
||||
x11-libs/pango
|
||||
x11-misc/xdg-utils
|
||||
apparmor? (
|
||||
>=sec-policy/apparmor-profiles-4
|
||||
>=sys-apps/apparmor-4
|
||||
)
|
||||
qt6? ( dev-qt/qtbase:6[gui,widgets] )
|
||||
"
|
||||
QA_PREBUILT="opt/${PN}/*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local arch=x64
|
||||
use arm64 && arch=arm64
|
||||
|
||||
# upstream ships prebuilt node modules for every platform it targets
|
||||
local candidate
|
||||
while IFS= read -r -d '' candidate; do
|
||||
[[ ${candidate} == *linux-${arch} ]] || rm -r "${candidate}" || die
|
||||
done < <(find usr/lib/chatgpt -type d -name prebuilds \
|
||||
-exec find {} -mindepth 1 -maxdepth 1 -print0 \; )
|
||||
|
||||
find usr/lib/chatgpt -name '*.musl.node' -delete || die
|
||||
|
||||
rm usr/lib/chatgpt/libqt5_shim.so || die
|
||||
use qt6 || rm usr/lib/chatgpt/libqt6_shim.so || die
|
||||
|
||||
# the window class is Chatgpt, which no installed desktop file name matches
|
||||
local exec="chatgpt"
|
||||
use wayland && exec+=" --ozone-platform=wayland --enable-wayland-ime"
|
||||
|
||||
sed -i -e "s|^Exec=chatgpt|Exec=${exec}|" \
|
||||
-e '/^Icon=/aStartupWMClass=Chatgpt' \
|
||||
usr/share/applications/chatgpt.desktop || die
|
||||
|
||||
if use apparmor; then
|
||||
# the profile names the binary by absolute path, which moves with it
|
||||
sed -i "s|/usr/lib/chatgpt/ChatGPT|/opt/${PN}/ChatGPT|" \
|
||||
etc/apparmor.d/chatgpt || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt
|
||||
mv usr/lib/chatgpt "${ED}/opt/${PN}" || die
|
||||
pax-mark m "${ED}/opt/${PN}/ChatGPT"
|
||||
|
||||
dosym -r "/opt/${PN}/codex-launcher" /usr/bin/chatgpt
|
||||
|
||||
domenu usr/share/applications/chatgpt.desktop
|
||||
doicon usr/share/pixmaps/chatgpt.png
|
||||
dodoc usr/share/doc/chatgpt/copyright
|
||||
|
||||
if use apparmor; then
|
||||
insinto /etc/apparmor.d
|
||||
doins etc/apparmor.d/chatgpt
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
elog "~/.codex is shared with dev-util/codex, so signing in may update its login state."
|
||||
|
||||
optfeature "Git repository support" dev-vcs/git
|
||||
optfeature "secret/keyring storage" virtual/secret-service
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zakk@gentoozh.org</email>
|
||||
<name>Zakk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="apparmor">Install the AppArmor profile for unprivileged user namespaces</flag>
|
||||
<flag name="qt6">Enable Qt 6 desktop integration</flag>
|
||||
<flag name="wayland">Run under Wayland natively instead of XWayland</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<doc>https://learn.chatgpt.com/docs/app</doc>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,14 @@
|
||||
OpenAI Terms of Use
|
||||
|
||||
The ChatGPT desktop application is proprietary software from OpenAI.
|
||||
Use of the application is governed by OpenAI's terms:
|
||||
|
||||
- Terms of Use: https://openai.com/policies/terms-of-use
|
||||
- Usage Policies: https://openai.com/policies/usage-policies
|
||||
- Privacy Policy: https://openai.com/policies/privacy-policy
|
||||
|
||||
The package redistributes the upstream binary unmodified from
|
||||
https://persistent.oaistatic.com/codex-app-prod/linux/deb/
|
||||
|
||||
This is proprietary software with specific usage terms; no right to
|
||||
redistribute the application is granted.
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Each of these either forbids redistributing the software, restricts what the
|
||||
# redistributor may charge, or requires the licensor's written permission.
|
||||
EULA AdsPower-EULA Anthropic BaiduNetDisk Bcompare Bcompare-5 CAJVIEWER-EULA cursor Feishu-EULA Google-TOS harmonoid-EULA HarmonyOS-Sans JetBrainsToolbox JLC-EULA Kiro MiSans NFTC Obsidian-EULA openclaude reqable_license SINEW-EULA SoftMaker Source-SDK Tencent Tencent-QQ tenvideo-privacy termius todesk trae typora typora-2026 unity-EULA VESTA wemeet_license windsurf
|
||||
EULA AdsPower-EULA Anthropic BaiduNetDisk Bcompare Bcompare-5 CAJVIEWER-EULA ChatGPT-Desktop cursor Feishu-EULA Google-TOS harmonoid-EULA HarmonyOS-Sans JetBrainsToolbox JLC-EULA Kiro MiSans NFTC Obsidian-EULA openclaude reqable_license SINEW-EULA SoftMaker Source-SDK Tencent Tencent-QQ tenvideo-privacy termius todesk trae typora typora-2026 unity-EULA VESTA wemeet_license windsurf
|
||||
|
||||
# Free, but not listed by the FSF or the OSI: redistribution and modification
|
||||
# are granted, subject to keeping the copyright notice and not reusing the name.
|
||||
|
||||
Reference in new issue
Block a user