dev-util/zcode-bin: add 4.0.0

Keep 3.19.1 through the 4.0.0 major jump (Electron 44).

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-11-24 22:20:17 +11:00
1 parent 736a6e6b8b
commit 91f6c1f20c
2 files changed
+99

No files matched your search

+2
View File
@@ -1,2 +1,4 @@
DIST zcode-bin-3.19.1-amd64.AppImage 264482589 BLAKE2B 14ed6b5f033fe98fccf13b3cca5273aba726d3a70a3f86422ca4134dad749a52e3001c9d28ccd4fc1a9eb2f8acc4e1665f174a12a0528f147f6e150bbe96371e SHA512 f74ce6713ac89e7dae3feaf2f61c8b84b0b1187f3acb4875987d1ea3fe1073be1070771bd225d94f93565458633153c962183f254fb8d49868830571c02af301
DIST zcode-bin-3.19.1-arm64.AppImage 265430509 BLAKE2B f6b6139e6898eb5906136d58bc8155149f04f2a81150a1cc6f6e9a071194d8527ba3b3aa53bbdaa47b125649598f7a212614b9cbfb65e8716775a49c23642f73 SHA512 f8a8f75f046aaca3427e3cef033d6fbfdf696407e060af8d089cac7f82a5074bc32bc303c8084bb5c11fe1fd5750b251cab07c83c0c14d04532c49d6d9ee0d9a
DIST zcode-bin-4.0.0-amd64.AppImage 264460979 BLAKE2B 5c2c5b6022484ddbeb6dc7a20a24e7fbcb37b94555ec7af9376043186e91a649f7f11ffc598faa692064f05b64a4cc1c691a68b086e1be53fb0700e5d13340f9 SHA512 da4755ec2e70cb1fa17a26ccfde53f79cb2fda6543714cc35abd097713a6eb2a737a3d83d5dda6b57d9c859afe4d2a0d2095478fdd235ad092f1f4b34f8f00bb
DIST zcode-bin-4.0.0-arm64.AppImage 265427170 BLAKE2B 49ca52dbdca2dd22163d3f66cdbdd370641c53aba2294174d40b7ac205ffabd6eef27467a7cd1504df2fb066a3b82ce1043baa6e62696d64df3b4c63a693ef92 SHA512 4e8dd3d3bcb0b60e1fce675d0f0adc52a75a7b8f706ce76a0e4467c6cf96e328f314df2bfdef6eb1faf63abaf21111d0fb9a21406ca55d87ffaf9e46646440bd
+97
View File
@@ -0,0 +1,97 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg
DESCRIPTION="ZCode - Z.ai's Agentic Development Environment for GLM (binary package)"
HOMEPAGE="https://zcode.z.ai"
SRC_URI="
amd64? (
https://cdn-zcode.z.ai/zcode/electron/releases/${PV}/linux-x64/ZCode-${PV}-linux-x64.AppImage
-> ${P}-amd64.AppImage
)
arm64? (
https://cdn-zcode.z.ai/zcode/electron/releases/${PV}/linux-arm64/ZCode-${PV}-linux-arm64.AppImage
-> ${P}-arm64.AppImage
)
"
S="${WORKDIR}/${P}"
LICENSE="Zcode"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="mirror bindist strip"
QA_PREBUILT="opt/zcode-bin/*"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/mesa
net-print/cups
sys-apps/dbus
virtual/libudev
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
amd64? ( x11-libs/gdk-pixbuf:2 )
"
src_unpack() {
cp "${DISTDIR}/${A}" . || die
chmod +x "${A}"
./"${A}" --appimage-extract >/dev/null || die "appimage-extract failed"
mv squashfs-root "${P}" || die
}
src_prepare() {
default
# The AppImage ships resources/ and its subdirectories as 0700, so only root could start the app.
chmod -R go+rX . || die
}
src_install() {
local dest=/opt/zcode-bin
dodir "${dest}"
cp -r "${S}"/. "${ED}${dest}" || die
fperms 4711 "${dest}"/chrome-sandbox
if use amd64; then
# Ubuntu tray fallbacks and gconf need GTK2 and dbus-glib; the app does not load them.
rm "${ED}${dest}"/usr/lib/{libappindicator.so.1,libindicator.so.7,libgconf-2.so.4} || die
# The amd64 AppImage ships an aarch64 sshcrypto.node; ssh2 falls back to pure JS.
local ssh2="${ED}${dest}"/resources/app.asar.unpacked/node_modules/ssh2
rm "${ssh2}"/lib/protocol/crypto/build/Release/sshcrypto.node || die
fi
# The unpacked sharp addon links libvips-cpp, which upstream left packed inside app.asar.
local sharp=x64
use arm64 && sharp=arm64
local vips=( "${ED}${dest}"/resources/glm/packages/node-repl-host/node_modules/@img/sharp-libvips-linux-${sharp}/lib/libvips-cpp.so.* )
[[ -f ${vips[0]} ]] || die "bundled libvips-cpp not found"
dosym -r "${vips[0]#"${ED}"}" \
"${dest}/resources/app.asar.unpacked/node_modules/@img/sharp-libvips-linux-${sharp}/lib/${vips[0]##*/}"
dosym -r "${dest}"/zcode /usr/bin/zcode
local size
for size in 48 64 128 256 1024; do
doicon -s ${size} usr/share/icons/hicolor/${size}x${size}/apps/zcode.png
done
make_desktop_entry "zcode %U" "ZCode" zcode "Development;IDE;"
}