aboutsummaryrefslogtreecommitdiff
path: root/development/dbeaver-ce
diff options
context:
space:
mode:
Diffstat (limited to 'development/dbeaver-ce')
-rw-r--r--development/dbeaver-ce/dbeaver-ce.SlackBuild33
-rw-r--r--development/dbeaver-ce/dbeaver-ce.info6
-rw-r--r--development/dbeaver-ce/doinst.sh3
3 files changed, 29 insertions, 13 deletions
diff --git a/development/dbeaver-ce/dbeaver-ce.SlackBuild b/development/dbeaver-ce/dbeaver-ce.SlackBuild
index d683266fff73..a8632f8c05f1 100644
--- a/development/dbeaver-ce/dbeaver-ce.SlackBuild
+++ b/development/dbeaver-ce/dbeaver-ce.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dbeaver-ce
-VERSION=${VERSION:-21.0.0}
+VERSION=${VERSION:-22.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -78,16 +78,28 @@ find -L . \
DESKTOPPATH=/usr/share/dbeaver/
NEWDESKTOPPATH=/opt/$PRGNAM/
-# Rewrite paths in .desktop file
-mv ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop.orig
-sed "s~$DESKTOPPATH~$NEWDESKTOPPATH~" ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop.orig > ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop
-rm ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop.orig
-
-# Add dbeaver to KDE/GNOME/XFCE menu
-install -D -m 644 ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.desktop \
- ${PKG}/usr/share/applications/${PRGNAM}.desktop
+## Add dbeaver to KDE/GNOME/XFCE menu
+mkdir -p $PKG/usr/share/applications
+cat <<EOF > $PKG/usr/share/applications/$PRGNAM.desktop
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Name=dbeaver-ce
+GenericName=Universal Database Manager
+Comment=Universal Database Manager and SQL Client.
+Path=/opt/$PRGNAM
+Exec=/opt/$PRGNAM/$ORIGINAL_PRGNAM
+Icon=/opt/$PRGNAM/dbeaver.png
+Categories=IDE;Development
+StartupWMClass=DBeaver
+StartupNotify=true
+Keywords=Database;SQL;IDE;JDBC;ODBC;MySQL;PostgreSQL;Oracle;DB2;MariaDB
+MimeType=application/sql
+EOF
-install -D -m 644 ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.png ${PKG}/usr/share/pixmaps/${ORIGINAL_PRGNAM}.png
+install -D -m 0644 ${NEWDESTDIR}/${ORIGINAL_PRGNAM}.png \
+ ${PKG}/usr/share/pixmaps/${ORIGINAL_PRGNAM}.png
mkdir -p $PKG/usr/bin
cat << EOF > $PKG/usr/bin/$PRGNAM
@@ -108,6 +120,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/dbeaver-ce/dbeaver-ce.info b/development/dbeaver-ce/dbeaver-ce.info
index 22632cc6ade2..c9a176acb965 100644
--- a/development/dbeaver-ce/dbeaver-ce.info
+++ b/development/dbeaver-ce/dbeaver-ce.info
@@ -1,10 +1,10 @@
PRGNAM="dbeaver-ce"
-VERSION="21.0.0"
+VERSION="22.0.3"
HOMEPAGE="https://dbeaver.io"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://download.dbeaver.com/community/21.0.0/dbeaver-ce-21.0.0-linux.gtk.x86_64.tar.gz"
-MD5SUM_x86_64="12d1dac3af310d1180448e28ebdb362d"
+DOWNLOAD_x86_64="https://download.dbeaver.com/community/22.0.3/dbeaver-ce-22.0.3-linux.gtk.x86_64.tar.gz"
+MD5SUM_x86_64="68097087bbd1868d25d6acebd28c1de4"
REQUIRES="zulu-openjdk8"
MAINTAINER="Joielechong"
EMAIL="juansspy@gmail.com"
diff --git a/development/dbeaver-ce/doinst.sh b/development/dbeaver-ce/doinst.sh
new file mode 100644
index 000000000000..5fb28930db0b
--- /dev/null
+++ b/development/dbeaver-ce/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi