I can't find an ebuild for Thorium browser, can someone provide one?
Related: https://github.com/Alex313031/thorium/issues/357.
Thorium browser ebuild
This is a absolute mess and its not working but if anyone want to work on it here it is
[Moderator edit: added [code] tags to preserve output layout. -Hu]
Code: Select all
EAPI=8
inherit desktop xdg unpacker
DESCRIPTION="Thorium Browser: A fast and secure browser for the modern web."
HOMEPAGE="https://github.com/Alex313031/thorium"
SRC_URI="https://github.com/Alex313031/thorium/releases/download/M${PV}/thorium-browser_${PV}_AVX2.deb"
LICENSE="BSD-3-Clause"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-libs/nss
dev-libs/icu
"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
src_unpack() {
unpack_deb "${A}" || die "Failed to unpack deb file"
mv "${WORKDIR}/opt/chromium.org/thorium" "${S}" || die "Failed to move files to ${S}"
}
src_install() {
local install_dir="/opt/chromium.org/thorium"
# Ensure that the directory exists
dodir "${install_dir}"
# Install Thorium resources
insinto "${install_dir}"
doins -r "${S}/opt/chromium.org/thorium/*" || die "Failed to install Thorium resources"
# Install Thorium binaries
exeinto "${install_dir}"
doexe "${install_dir}/thorium" \
"${install_dir}/thorium-browser" \
"${install_dir}/thorium_shell" || die "Failed to install Thorium binaries"
# Create symbolic links to binaries in /usr/bin
dosym "${install_dir}/thorium-browser" "/usr/bin/thorium-browser" || die "Failed to create symbolic link for thorium-browser"
dosym "${install_dir}/thorium" "/usr/bin/thorium" || die "Failed to create symbolic link for thorium"
# Check if the icon file exists before trying to install it
if [ -e "${install_dir}/thorium-browser.png" ]; then
newicon "${install_dir}/thorium-browser.png" thorium-browser.png || die "Failed to install icon"
else
eerror "Icon file thorium-browser.png not found. Skipping installation."
fi
# Create desktop entry
make_desktop_entry thorium-browser "Thorium Browser" thorium-browser.png "Network;WebBrowser;" || die "Failed to create desktop entry"
}
# Add multilib-strict-skip flag before any phases
export PORTAGE_EBUILD_PHASES="multilib-strict-skip ${PORTAGE_EBUILD_PHASES}"-
blackteahamburger
- n00b

- Posts: 4
- Joined: Sat Feb 17, 2024 11:00 am
Made one in gentoo-zh: https://github.com/microcai/gentoo-zh/t ... rowser-bin
I dislike the complicated process to submit ebuilds to GURU, so I submitted it to a repository that I'm familiar with.
I dislike the complicated process to submit ebuilds to GURU, so I submitted it to a repository that I'm familiar with.

