dev-db/dbeaver-bin: new package, add 24.3.2

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-01-18 14:21:14 +02:00
parent 0ca2667a53
commit 40a51e873e
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST dbeaver-ce-24.3.2-linux.gtk.aarch64-nojdk.tar.gz 88491639 BLAKE2B 4d5332e9a885ff6caf0cafefc7a5f76990e87639e7838fecb1b30415ee1ddd45b95d3dd605308ed81a77987ac631668b3bfb83597e62ca2370761a0614c8e80e SHA512 2e441ea51f25124f56e5b2a0d06f146a323a038c838db4be90b3822f06cdf9c004f4b67c756f293d7cc10cd38184ad99881193c9863d743da4ca902526d97246
DIST dbeaver-ce-24.3.2-linux.gtk.x86_64-nojdk.tar.gz 88525311 BLAKE2B fc4dd9c803d76042cc0ccc9f2af1387846b72f6e485986bb2df3748ea6a6d6bdaef0a94b06bd86e4d931f1b840371a238c0b1077860ec83faf62c65a9d106703 SHA512 7525c5a0288e0a5df068d91a99d471cab64525f9aa1e623564a1a668cc9a9a0bf22833c8b3f540c657953c23f8c1f066b7d8a349c7facfd3ff29d9d3e6c36307

View File

@@ -0,0 +1,49 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper xdg
MY_PN=${PN%-*}
DESCRIPTION="Free universal database tool (community edition)"
HOMEPAGE="https://dbeaver.io/"
SRC_URI="
amd64? ( https://dbeaver.io/files/${PV}/dbeaver-ce-${PV}-linux.gtk.x86_64-nojdk.tar.gz )
arm64? ( https://dbeaver.io/files/${PV}/dbeaver-ce-${PV}-linux.gtk.aarch64-nojdk.tar.gz )
"
S=${WORKDIR}/${MY_PN}
LICENSE="Apache-2.0 EPL-1.0 BSD"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND=">=virtual/jre-17:*"
src_prepare() {
sed -e "s/^Icon=.*/Icon=${MY_PN}/" \
-e 's:/usr/share/dbeaver:/opt/dbeaver:g' \
-e "s:^Exec=.*:Exec=${EPREFIX}/usr/bin/${MY_PN}:" \
-i "${MY_PN}-ce.desktop" || die
default
}
src_install() {
doicon -s 128 "${MY_PN}.png"
newicon icon.xpm "${MY_PN}.xpm"
domenu "${MY_PN}-ce.desktop"
local DOCS=( readme.txt )
einstalldocs
# Remove unused plugins for other platforms
rm -rv plugins/com.sun.jna_5.15.0.v20240915-2000/com/sun/jna/{openbsd,dragonflybsd,freebsd,sunos,win32,darwin,aix}-* || die
rm "${MY_PN}-ce.desktop" "${MY_PN}.png" icon.xpm readme.txt || die
insinto "/opt/${MY_PN}-ce"
doins -r ./*
fperms 755 "/opt/${MY_PN}-ce/${MY_PN}"
make_wrapper "${MY_PN}" "/opt/${MY_PN}-ce/${MY_PN}" "/opt/${MY_PN}-ce"
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>arthurzam@gentoo.org</email>
<name>Arthur Zamarin</name>
</maintainer>
<upstream>
<remote-id type="github">dbeaver/dbeaver</remote-id>
<bugs-to>https://github.com/dbeaver/dbeaver/issues</bugs-to>
<changelog>https://dbeaver.io/news/</changelog>
</upstream>
</pkgmetadata>