Commit 19004d55 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add dbeaver

parent ce5faf84
#!/bin/sh
PKGNAME=dbeaver-ce
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="DBeaver Community from the official site"
URL="https://dbeaver.io/"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKGURL="https://dbeaver.io/files/$VERSION/dbeaver-ce-$VERSION-stable.x86_64.rpm"
[ "$VERSION" = "*" ] && PKGURL="https://dbeaver.io/files/dbeaver-ce-latest-stable.x86_64.rpm"
;;
*)
PKGURL="https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb"
[ "$VERSION" = "*" ] && PKGURL="https://dbeaver.io/files/$VERSION/dbeaver-ce_$VERSION_amd64.deb"
;;
esac
epm install "$PKGURL"
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTCUR=dbeaver
. $(dirname $0)/common.sh
move_to_opt
rm usr/bin/$PRODUCT
add_bin_link_command $PRODUCT $PRODUCTDIR/$PRODUCTCUR
add_bin_link_command $PRODUCTCUR $PRODUCT
fix_desktop_file "/usr/share/dbeaver-ce/dbeaver"
fix_desktop_file "/usr/share/dbeaver-ce/dbeaver.png"
fix_desktop_file "/usr/share/dbeaver-ce/" "$PRODUCTDIR/"
add_requires java-openjdk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment