# Template file for 'dbeaver' pkgname=dbeaver version=5.2.3 revision=1 only_for_archs="i686 x86_64" hostmakedepends="apache-maven-bin" short_desc="Free Universal Database Tool" maintainer="Kyle Nusbaum " license="Apache-2.0" homepage="https://dbeaver.io" distfiles="https://github.com/dbeaver/dbeaver/archive/${version}.tar.gz" checksum=d2e9725bd8b251082fec751f79c15d741300a949db1e95c7b7700fda755c0532 nopie=true do_build() { mvn package } do_install() { case $XBPS_TARGET_MACHINE in x86_64*) _target_dir=x86_64 ;; i686*) _target_dir=x86 ;; esac vmkdir /usr/share vcopy "product/standalone/target/products/org.jkiss.dbeaver.core.product/linux/gtk/${_target_dir}/dbeaver" /usr/share/ vmkdir /usr/bin ln -s /usr/share/dbeaver/dbeaver ${DESTDIR}/usr/bin/dbeaver }