diff options
author | Joielechong <juansspy@gmail.com> | 2022-04-29 15:01:02 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:51:58 +0700 |
commit | b52a56d4e0b0e37b1e01f49ac7afa691165c1718 (patch) | |
tree | aaac78cc606cfe05262f8d375f4e50f7adbcb7fe | |
parent | d36ea97cf7a091ff6df4b9eb086582ca500dea7c (diff) | |
download | slackbuilds-b52a56d4e0b0e37b1e01f49ac7afa691165c1718.tar.gz |
development/dbeaver-ce: Updated for version 22.0.3.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/dbeaver-ce/dbeaver-ce.SlackBuild | 33 | ||||
-rw-r--r-- | development/dbeaver-ce/dbeaver-ce.info | 6 | ||||
-rw-r--r-- | development/dbeaver-ce/doinst.sh | 3 |
3 files changed, 29 insertions, 13 deletions
diff --git a/development/dbeaver-ce/dbeaver-ce.SlackBuild b/development/dbeaver-ce/dbeaver-ce.SlackBuild index d683266fff..a8632f8c05 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 22632cc6ad..c9a176acb9 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 0000000000..5fb28930db --- /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 |