media-gfx/bambustudio-bin: add 02.07.01.57

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui committed 2026-06-02 15:15:40 +08:00
1 parent 2995e8533b
commit a07be7147e
2 files changed
+92

No files matched your search

+1
View File
@@ -1 +1,2 @@
DIST bambustudio-bin-02.06.00.51.AppImage 224688632 BLAKE2B 2e01d53748db4c2827e6e6e300a817155752342d6ce27152b10e3dcb32ff0abaf2c9272f6843b523cf99e774e54afb4d5ebd5313fd512c5b95d85ccd75288d5b SHA512 609bb6710306f272f4295eb5ee73f0954ef48816165d594dc7817805432dfa27eb8a3bc545e5a8db41f72bdd75bdbbdd4ba66c129afce3837aed1d3cf21a168c
DIST bambustudio-bin-02.07.01.57.AppImage 227875320 BLAKE2B 4e962377e6251b4056b16dce0ba8d405a69492aa1e5243127d6cfb09b9d7290ac2270b71f118d443239fb0bdd049faf8ae2a7c72477f41c50f9df55b989ac680 SHA512 ce1e547789985afc6b914cd02972f1bc53829adbdc37481e1cb26981d8e340a0fbf3a12359df594d70fbade014510539329af1f2163c3c0cfe40146e519fdf3f
@@ -0,0 +1,91 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="BambuStudio"
WX_GTK_VER="3.2-gtk3"
inherit desktop wrapper xdg
DESCRIPTION="Bambu Studio is a cutting-edge, feature-rich slicing software"
HOMEPAGE="https://bambulab.com"
SRC_URI="
amd64? (
https://github.com/bambulab/${MY_PN}/releases/download/v${PV}/BambuStudio_ubuntu-24.04-v02.07.01.57-20260601192128.AppImage
-> ${P}.AppImage
)
"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
dev-libs/glib:2
dev-libs/wayland
media-gfx/openvdb
media-libs/fontconfig
media-libs/glew:0
>=media-libs/glm-0.9.9.1
media-libs/gst-plugins-base
media-libs/gstreamer
media-libs/libglvnd
media-libs/mesa
net-libs/libsoup:2.4
net-libs/webkit-gtk:4.1
>=sci-libs/opencascade-7.3.0:0
sys-apps/dbus
virtual/glu
virtual/zlib
>=x11-libs/cairo-1.8.8:0
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libxkbcommon
x11-libs/pango
>=x11-libs/pixman-0.30
x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/patchelf
"
QA_PREBUILT="*"
RESTRICT="strip test"
src_unpack() {
mkdir "${S}" || die
cp "${DISTDIR}/${P}.AppImage" "${S}"/ || die
pushd "${S}" || die
chmod +x "${S}/${P}.AppImage" || die
"${S}/${P}.AppImage" --appimage-extract || die
rm "${S}/${P}.AppImage" || die
popd || die
}
src_install() {
# Set RUNPATH so the bundled libraries in /opt/${PN}/bin/ are found.
# The ubuntu-24.04 AppImage links directly against webkit-gtk:4.1,
# so no soname replacement is needed anymore.
patchelf --set-rpath '$ORIGIN' \
"${S}"/squashfs-root/bin/bambu-studio || die
# Ubuntu ships bzip2 with SONAME libbz2.so.1.0; Gentoo uses libbz2.so.1.
# Rewrite NEEDED entries so qa-unresolved-soname-deps is satisfied and the
# binary stays linkable after Gentoo drops the libbz2.so.1.0 compat symlink.
local f
while IFS= read -r -d '' f; do
[[ -L ${f} ]] && continue
patchelf --print-needed "${f}" 2>/dev/null | grep -qxF 'libbz2.so.1.0' || continue
patchelf --replace-needed libbz2.so.1.0 libbz2.so.1 "${f}" || die
done < <(find "${S}"/squashfs-root -type f -print0)
insinto /opt/"${PN}"
doins -r "${S}"/squashfs-root/*
fperms +x "/opt/${PN}/AppRun" "/opt/${PN}/bin/bambu-studio"
doicon -s 192 "${S}"/squashfs-root/BambuStudio.png
domenu "${FILESDIR}/bambu-studio.desktop"
make_wrapper bambu-studio "/opt/${PN}/AppRun"
}