From b52a56d4e0b0e37b1e01f49ac7afa691165c1718 Mon Sep 17 00:00:00 2001 From: Joielechong Date: Fri, 29 Apr 2022 15:01:02 +0100 Subject: development/dbeaver-ce: Updated for version 22.0.3. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- development/dbeaver-ce/dbeaver-ce.SlackBuild | 33 +++++++++++++++++++--------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'development/dbeaver-ce/dbeaver-ce.SlackBuild') 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 < $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 -- cgit v1.2.3