Adding unityhub
This commit is contained in:
parent
77b9224e6a
commit
c74bf8699e
|
@ -0,0 +1 @@
|
|||
DIST unityhub-amd64-3.4.2.deb 140402340 BLAKE2B 83ed30e3d39abc1cef464ecb4cc7f5c04e4a22fbafb8c42fb3df1e95e658f7826373e3fa89e579f20aa37242b4b90796de04f471ac2f9118291f16e5910d8435 SHA512 ee57e24d03f665b6c89dbfe2562c3aea26109a6466f5693cf08b3fb8a0ce2fadf492a589916330a0e8327b9e221104bde05b0229cb65875f4a9b11e223b370c2
|
|
@ -0,0 +1,48 @@
|
|||
# Copyright 2022 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://unity.com/"
|
||||
SRC_URI="https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/${PN}-amd64-${PV}.deb"
|
||||
|
||||
LICENSE="unity-EULA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
IUSE="+appindicator legacy"
|
||||
|
||||
DEPEND="
|
||||
appindicator? (
|
||||
dev-libs/libdbusmenu
|
||||
legacy? (
|
||||
dev-libs/libappindicator
|
||||
x11-misc/appmenu-gtk-module[gtk2]
|
||||
)
|
||||
)
|
||||
app-arch/cpio
|
||||
dev-libs/nss
|
||||
x11-libs/gtk+
|
||||
app-crypt/libsecret
|
||||
|| ( <dev-libs/openssl-3 dev-libs/openssl-compat )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
S=${WORKDIR}
|
||||
src_unpack(){
|
||||
unpack_deb ${PN}-amd64-${PV}.deb
|
||||
}
|
||||
src_install(){
|
||||
insinto "/opt"
|
||||
doins -r "${S}/opt/unityhub"
|
||||
dosym -r /opt/unityhub/unityhub /usr/bin/unityhub
|
||||
for si in 16 32 48 64 128 256 512; do
|
||||
doicon -s ${si} usr/share/icons/hicolor/${si}x${si}/apps/${PN}.png
|
||||
done
|
||||
domenu "${WORKDIR}/usr/share/applications/unityhub.desktop"
|
||||
fperms 0755 -R "/opt/unityhub"
|
||||
}
|
Loading…
Reference in New Issue