上游从 3.21.2 起改了 deb 的文件名:仓库 Packages 索引里是 UnityHubSetup-3.21.2-amd64.deb,不再是 unityhub_3.21.2_amd64.deb, 原 SRC_URI 取回 404。载荷结构未变,src_install 引用的四个路径都在。 Closes: https://github.com/gentoo-zh/overlay/issues/13254 Signed-off-by: Zakk <zakk@gentoozh.org>
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
# Copyright 2022-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit xdg desktop unpacker
|
|
|
|
DESCRIPTION="The official unity tool for manager Unity Engines and projects"
|
|
HOMEPAGE="https://docs.unity.com/en-us/hub"
|
|
SRC_URI="https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/UnityHubSetup-${PV}-amd64.deb -> ${PN}-amd64-${PV}.deb"
|
|
S=${WORKDIR}
|
|
|
|
LICENSE="unity-EULA"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="+appindicator legacy"
|
|
RESTRICT="bindist mirror strip"
|
|
|
|
DEPEND="
|
|
appindicator? (
|
|
dev-libs/libdbusmenu
|
|
legacy? (
|
|
dev-libs/libayatana-appindicator
|
|
x11-misc/appmenu-gtk-module[gtk2]
|
|
)
|
|
)
|
|
app-arch/cpio
|
|
dev-libs/nss
|
|
dev-util/lttng-ust:0/2.12
|
|
x11-libs/gtk+
|
|
app-crypt/libsecret
|
|
dev-libs/openssl-compat
|
|
media-libs/alsa-lib
|
|
dev-libs/libxml2-compat
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_unpack(){
|
|
unpack_deb ${PN}-amd64-${PV}.deb
|
|
}
|
|
src_install(){
|
|
insinto /opt
|
|
doins -r usr/lib/unityhub
|
|
dosym -r /opt/unityhub/unityhub /usr/bin/unityhub
|
|
insinto /usr/share/icons
|
|
doins -r usr/share/icons/hicolor
|
|
domenu usr/share/applications/${PN}.desktop
|
|
fperms 0755 -R /opt/unityhub
|
|
}
|