blob: beb45dd69333922becee299e3d64d0acb40cc1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Lucas Nascimento <lucasnascimento95@gmail.com>
# Contributor: Arne Hoch <arne@derhoch.de>
_pkgname=dbeaver
pkgname=dbeaver-ce-bin
pkgver=24.3.2
pkgrel=1
pkgdesc="Free universal SQL Client for developers and database administrators (community edition)"
arch=('x86_64')
url="https://dbeaver.io/"
license=("Apache-2.0")
depends=('java-runtime>=17' 'gtk3' 'gtk-update-icon-cache' 'libsecret')
conflicts=('dbeaver')
provides=('dbeaver')
source=("${_pkgname}-${pkgver}.linux.gtk.${arch}-nojdk.tar.gz"::"https://github.com/dbeaver/dbeaver/releases/download/${pkgver}/dbeaver-ce-${pkgver}-linux.gtk.${arch}-nojdk.tar.gz"
"io.dbeaver.DBeaver.desktop"
"${pkgname}.sh"
"${pkgname}.install")
sha256sums=('91ba5d000fd9987d5ff8c11fa33ca3afc1d328b856121b3000673b892a72f6b1'
'9480a7d08f680e10c399db070c5a04cbabf282442602a2ef83d1159fe7c3e88b'
'406a2980806c394670e88b1ae70134900be376c2ea4a4216610591cc8b557526'
'603f7aa912685b69ca558ca7586585b7a314ca1b743be574db7bcd7a31c2ea2d')
install="${pkgname}.install"
package() {
# Initially install everything into /usr/lib/dbeaver
install -m 755 -d "${pkgdir}/usr/lib"
cp -r "dbeaver" "${pkgdir}/usr/lib/${_pkgname}"
# Move shared data to /usr/share/dbeaver
cd "${pkgdir}/usr/lib/${_pkgname}"
rm "dbeaver-ce.desktop"
install -m 755 -d "${pkgdir}/usr/share/${_pkgname}"
for _file in configuration features p2 .eclipseproduct dbeaver.ini readme.txt
do
mv "${_file}" "${pkgdir}/usr/share/${_pkgname}"
ln -s "/usr/share/${_pkgname}/${_file}" .
done
# Install additional licenses
install -m 755 -d "${pkgdir}/usr/share/licenses"
mv licenses "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/usr/share/licenses/${pkgname}" "${pkgdir}/usr/lib/${_pkgname}/licenses"
# Install icons
install -m 755 -d "${pkgdir}/usr/share/pixmaps"
mv dbeaver.png "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
mv icon.xpm "${pkgdir}/usr/share/pixmaps/${_pkgname}.xpm"
# Install executable script into /usr/bin
install -m 755 -d "${pkgdir}/usr/bin"
install -m 755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/dbeaver"
# Install application launcher into /usr/share/applications
install -m 755 -d "${pkgdir}/usr/share/applications"
install -m 755 -t "${pkgdir}/usr/share/applications" "${srcdir}/io.dbeaver.DBeaver.desktop"
}
|