mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
media-gfx/bambustudio-bin: new package, add 01.09.03.50
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
1
media-gfx/bambustudio-bin/Manifest
Normal file
1
media-gfx/bambustudio-bin/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bambustudio-bin-01.09.03.50.AppImage 103167168 BLAKE2B e5940939a9c88467900d0800a0d0715b9a6f5b4ffb3626d2bf08bbd9db7efdf19bbf4f24acfa4d0690a6f19aeab35c18c63e700d24b38d871f62c68ca26c190f SHA512 69f4fc9018a22aa34e145057f81394b8c5992688c500922618ab199f1f6618ad92aea1a5356f476741b1a60ddea5436adea175c60318aca72ffe198e347d00d7
|
||||
75
media-gfx/bambustudio-bin/bambustudio-bin-01.09.03.50.ebuild
Normal file
75
media-gfx/bambustudio-bin/bambustudio-bin-01.09.03.50.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="BambuStudio"
|
||||
WX_GTK_VER="3.0-gtk3"
|
||||
|
||||
inherit desktop unpacker xdg
|
||||
|
||||
DESCRIPTION="Bambu Studio is a cutting-edge, feature-rich slicing software"
|
||||
HOMEPAGE="https://bambulab.com"
|
||||
|
||||
SRC_URI="
|
||||
https://github.com/bambulab/${MY_PN}/releases/download/v${PV}/Bambu_Studio_linux_fedora-v${PV}.AppImage -> ${P}.AppImage
|
||||
"
|
||||
S="${WORKDIR}/${P}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RDEPEND="
|
||||
media-gfx/openvdb
|
||||
media-libs/glew:0=
|
||||
>=media-libs/glm-0.9.9.1
|
||||
media-libs/gstreamer
|
||||
media-libs/mesa[X(+)]
|
||||
net-libs/libsoup:3.0=
|
||||
net-libs/webkit-gtk:4.1/0
|
||||
>=sci-libs/opencascade-7.3.0:0=
|
||||
virtual/glu
|
||||
>=x11-libs/cairo-1.8.8:=
|
||||
x11-libs/libxkbcommon
|
||||
>=x11-libs/pixman-0.30
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/patchelf
|
||||
"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
RESTRICT="strip"
|
||||
|
||||
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() {
|
||||
rm "${S}"/squashfs-root/*.AppImage || die
|
||||
rm "${S}"/squashfs-root/*.desktop || die
|
||||
rm "${S}"/squashfs-root/.DirIcon || die
|
||||
rm -r "${S}"/squashfs-root/usr || die
|
||||
patchelf --replace-needed libwebkit2gtk-4.0.so.37 libwebkit2gtk-4.1.so.0 \
|
||||
"${S}"/squashfs-root/bin/bambu-studio || die
|
||||
patchelf --replace-needed libjavascriptcoregtk-4.0.so.18 libjavascriptcoregtk-4.1.so.0 \
|
||||
"${S}"/squashfs-root/bin/bambu-studio || die
|
||||
patchelf --remove-needed libsoup-2.4.so.1 \
|
||||
"${S}"/squashfs-root/bin/bambu-studio || die
|
||||
patchelf --set-rpath '$ORIGIN' \
|
||||
"${S}"/squashfs-root/bin/bambu-studio || die
|
||||
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"
|
||||
dobin "${FILESDIR}/bambu-studio"
|
||||
}
|
||||
3
media-gfx/bambustudio-bin/files/bambu-studio
Normal file
3
media-gfx/bambustudio-bin/files/bambu-studio
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec "/opt/bambustudio-bin/AppRun" "$1"
|
||||
|
||||
7
media-gfx/bambustudio-bin/files/bambu-studio.desktop
Normal file
7
media-gfx/bambustudio-bin/files/bambu-studio.desktop
Normal file
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=BambuStudio
|
||||
Exec=bambu-studio %U
|
||||
Icon=BambuStudio
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
MimeType=x-scheme-handler/bambustudio;model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
|
||||
24
media-gfx/bambustudio-bin/metadata.xml
Normal file
24
media-gfx/bambustudio-bin/metadata.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">bambulab/BambuStudio</remote-id>
|
||||
<bugs-to>https://github.com/bambulab/BambuStudio/issues</bugs-to>
|
||||
<changelog>https://github.com/bambulab/BambuStudio/releases</changelog>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Bambu Studio is a cutting-edge, feature-rich slicing software. It
|
||||
contains project-based workflows, systematically optimized slicing
|
||||
algorithms, and an easy-to-use graphic interface, bringing users an
|
||||
incredibly smooth printing experience.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
Bambu Studio 是一款开源的、尖端的、功能丰富的切片软件。它包含了基于项目
|
||||
的工作流,系统化的切片算法,以及易于使用的图形界面,为用户带来令人难以置
|
||||
信的流畅打印体验。
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user