void-packages/srcpkgs/dbeaver/template
2022-02-06 20:01:15 -03:00

27 lines
822 B
Bash

# Template file for 'dbeaver'
pkgname=dbeaver
version=21.3.4
revision=1
# the build downloads binaries linked to glibc
archs="x86_64 aarch64"
hostmakedepends="apache-maven"
depends="openjdk11" # openjdk11 or later version, when available
short_desc="Free Universal Database Tool"
maintainer="Kyle Nusbaum <knusbaum+void@sdf.org>"
license="Apache-2.0"
homepage="https://dbeaver.io"
distfiles="https://github.com/dbeaver/dbeaver/archive/${version}.tar.gz"
checksum=562f7cae8728cb1fc8a488eb01dff8691d347c00e240ea09db7a476e65229629
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
}