gentoo-zh/dev-util/jetbrains-toolbox/jetbrains-toolbox-1.22.10774.ebuild
Anonymous 4eb58c7d85
dev-util/jetbrains-toolbox: fix QA notice
https://bugs.gentoo.org/826110
https://bugs.gentoo.org/826114

close #1406

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Anonymous <458892+aieu@users.noreply.github.com>
2021-12-15 10:55:20 +08:00

47 lines
965 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Copyright 2019 Rabenda
EAPI=6
inherit eutils xdg-utils
DESCRIPTION="Manage all your JetBrains Projects and Tools"
HOMEPAGE="https://www.jetbrains.com/toolbox/app"
SRC_URI="https://download.jetbrains.com/toolbox/${P}.tar.gz"
LICENSE="JetBrainsToolbox"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="sys-fs/fuse:0"
QA_PREBUILT="opt/jetbrains-toolbox/jetbrains-toolbox"
src_compile() {
./"${PN}" --appimage-extract
}
src_install() {
keepdir /opt/jetbrains-toolbox
insinto /opt/jetbrains-toolbox
doins jetbrains-toolbox
fperms +x /opt/jetbrains-toolbox/jetbrains-toolbox
#newicon squashfs-root/jetbrains-toolbox.svg "${PN}.svg"
make_wrapper "${PN}" /opt/jetbrains-toolbox/jetbrains-toolbox
insinto /usr/share/applications
doins "${FILESDIR}/${PN}.desktop"
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}