mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-18 07:18:58 -04:00
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>
47 lines
965 B
Bash
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
|
|
}
|