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 /development/dbeaver-ce/dbeaver-ce.SlackBuild | |
parent | d36ea97cf7a091ff6df4b9eb086582ca500dea7c (diff) |
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>
Diffstat (limited to 'development/dbeaver-ce/dbeaver-ce.SlackBuild')
-rw-r--r-- | development/dbeaver-ce/dbeaver-ce.SlackBuild | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/development/dbeaver-ce/dbeaver-ce.SlackBuild b/development/dbeaver-ce/dbeaver-ce.SlackBuild index d683266fff733..a8632f8c05f17 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 |