# Template file for 'dbeaver' pkgname=dbeaver version=23.2.2 revision=1 # the build downloads binaries linked to glibc archs="x86_64 aarch64" hostmakedepends="apache-maven openjdk17" depends="openjdk17" short_desc="Free Universal Database Tool" maintainer="Kyle Nusbaum " license="Apache-2.0" homepage="https://dbeaver.io" changelog="https://dbeaver.io/news/" distfiles="https://github.com/dbeaver/dbeaver/archive/${version}.tar.gz" checksum=7bea1833a26e928e43f8dc977b8a09949b7b1c63959723e5c26d87e24a26dbdb nopie=true do_build() { 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/ 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 }