Ajout de dbeaver et insomnia
This commit is contained in:
43
dev-db/dbeaver-bin/dbeaver-bin-24.1.1.ebuild
Normal file
43
dev-db/dbeaver-bin/dbeaver-bin-24.1.1.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2019-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop wrapper xdg
|
||||
|
||||
MY_PN="${PN%-bin*}"
|
||||
|
||||
DESCRIPTION="Free universal database tool (community edition)."
|
||||
HOMEPAGE="https://dbeaver.io/"
|
||||
SRC_URI="amd64? ( https://dbeaver.io/files/${PV}/${MY_PN}-ce-${PV}-linux.gtk.x86_64-nojdk.tar.gz -> ${P}-amd64.tar.gz )
|
||||
arm64? ( https://dbeaver.io/files/${PV}/${MY_PN}-ce-${PV}-linux.gtk.aarch64-nojdk.tar.gz -> ${P}-arm64.tar.gz )"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}"
|
||||
|
||||
LICENSE="Apache-2.0 EPL-1.0 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="virtual/jre:17"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s/^Icon=.*/Icon=${MY_PN}/" \
|
||||
-e 's:/usr/share/dbeaver:/opt/dbeaver:g' \
|
||||
-e '/^WMCLASS.*/d' \
|
||||
-e "s:^Exec=.*:Exec=${EPREFIX}/usr/bin/${MY_PN}:" \
|
||||
-i "${MY_PN}-ce.desktop"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doicon -s 128 "${MY_PN}.png"
|
||||
newicon icon.xpm "${MY_PN}.xpm"
|
||||
domenu "${MY_PN}-ce.desktop"
|
||||
einstalldocs
|
||||
rm "${MY_PN}-ce.desktop" "${MY_PN}.png" icon.xpm readme.txt
|
||||
insinto "/opt/${MY_PN}-ce"
|
||||
doins -r ./*
|
||||
fperms 0755 "/opt/${MY_PN}-ce/${MY_PN}"
|
||||
make_wrapper "${MY_PN}" "/opt/${MY_PN}-ce/${MY_PN}" "/opt/${MY_PN}-ce"
|
||||
}
|
||||
Reference in New Issue
Block a user