49 lines
1.7 KiB
Bash
49 lines
1.7 KiB
Bash
# Template file for 'dbeaver'
|
|
pkgname=dbeaver
|
|
version=24.2.3
|
|
revision=1
|
|
_common_commit=605757efc02bf2d55f00d1b64f1b7f00f2819eb4
|
|
# the build downloads binaries linked to glibc
|
|
archs="x86_64 aarch64"
|
|
build_wrksrc="dbeaver"
|
|
hostmakedepends="apache-maven openjdk17"
|
|
depends="openjdk17"
|
|
short_desc="Free Universal Database Tool"
|
|
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://dbeaver.io"
|
|
changelog="https://dbeaver.io/news/"
|
|
distfiles="https://github.com/dbeaver/dbeaver/archive/${version}.tar.gz
|
|
https://github.com/dbeaver/dbeaver-common/archive/${_common_commit}.tar.gz"
|
|
checksum="367d3e8e712ffb4868026f543e8386d395dc5f33250ef12286669b7a95be983d
|
|
6f45062fb5c7e9489ee5d801c1821af0eb54bbc6ad26eed03f91ed88db8ab681"
|
|
nopie=true
|
|
|
|
post_extract() {
|
|
mv ${wrksrc}/dbeaver-${version} ${wrksrc}/dbeaver
|
|
mv ${wrksrc}/dbeaver-common-${_common_commit} ${wrksrc}/dbeaver-common
|
|
}
|
|
|
|
do_build() {
|
|
. /etc/profile.d/jdk.sh
|
|
cd "product/aggregate"
|
|
mvn package -P all-platforms
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir /usr/lib
|
|
vcopy "product/community/target/products/org.jkiss.dbeaver.core.product/linux/gtk/${XBPS_TARGET_MACHINE}/dbeaver" /usr/lib/
|
|
|
|
# Delete folders with Java Native Access .so's for different architectures
|
|
jna_dir="${DESTDIR}/usr/lib/dbeaver/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna"
|
|
jna_arch="linux-${XBPS_TARGET_MACHINE//_/-}"
|
|
find "$jna_dir" -depth -mindepth 1 -type d -not -name $jna_arch -exec rm -rf {} \;
|
|
|
|
vmkdir /usr/bin
|
|
ln -s /usr/lib/dbeaver/dbeaver ${DESTDIR}/usr/bin/dbeaver
|
|
|
|
vinstall product/community/icons/dbeaver.png 644 usr/share/pixmaps
|
|
vinstall product/community/icons/dbeaver.xpm 644 usr/share/pixmaps
|
|
vinstall ${FILESDIR}/dbeaver.desktop 0644 usr/share/applications
|
|
}
|