[dbeaver] install .desktop file
This commit is contained in:
parent
bdcb005db2
commit
9ccb1ef281
1 changed files with 10 additions and 9 deletions
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
# Slackware build script for dbeaver
|
# Slackware build script for dbeaver
|
||||||
|
|
||||||
# Copyright 2014 Antonio Hernández Blas <hba.nihilismus@gmail.com>
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
# permitted provided that the following conditions are met:
|
# permitted provided that the following conditions are met:
|
||||||
#
|
#
|
||||||
|
@ -48,7 +45,7 @@ mkdir -p $TMP $PKG $OUTPUT
|
||||||
|
|
||||||
SRCNAM=dbeaver-ce
|
SRCNAM=dbeaver-ce
|
||||||
SRCVER=$VERSION-linux.gtk.$SRCARCH
|
SRCVER=$VERSION-linux.gtk.$SRCARCH
|
||||||
DESTDIR=$PKG/opt/
|
DESTDIR=$PKG/usr/share
|
||||||
|
|
||||||
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
|
REPOSITORY=${REPOSITORY:-/home/installs/SlackBuilds/_repositories/$PRGNAM}
|
||||||
|
|
||||||
|
@ -60,29 +57,33 @@ mkdir -p $REPOSITORY
|
||||||
mkdir -p $DESTDIR
|
mkdir -p $DESTDIR
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
tar xvf $REPOSITORY/$SRCNAM-$SRCVER.tar.gz
|
tar xvf $REPOSITORY/$SRCNAM-$SRCVER.tar.gz
|
||||||
|
mv dbeaver dbeaver-ce
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
chmod ga+x $DESTDIR/dbeaver/dbeaver
|
chmod ga+x $DESTDIR/dbeaver-ce/dbeaver
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/share/applications/
|
||||||
|
cp $DESTDIR/dbeaver-ce/dbeaver-ce.desktop $PKG/usr/share/applications/
|
||||||
|
|
||||||
mkdir -p $PKG/usr/bin
|
mkdir -p $PKG/usr/bin
|
||||||
cat << EOF > $PKG/usr/bin/dbeaver
|
cat << EOF > $PKG/usr/bin/dbeaver
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd \$HOME
|
cd \$HOME
|
||||||
/opt/dbeaver/dbeaver \$@
|
/usr/share/dbeaver-ce/dbeaver \$@
|
||||||
EOF
|
EOF
|
||||||
chmod 0755 $PKG/usr/bin/dbeaver
|
chmod 0755 $PKG/usr/bin/dbeaver
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/dbeaver
|
mkdir -p $PKG/usr/doc/dbeaver-ce
|
||||||
cp -a \
|
cp -a \
|
||||||
$DESTDIR/dbeaver/readme.txt $DESTDIR/dbeaver/licenses/* \
|
$DESTDIR/dbeaver-ce/readme.txt $DESTDIR/dbeaver-ce/licenses/* \
|
||||||
$PKG/usr/doc/dbeaver
|
$PKG/usr/doc/dbeaver-ce/
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat <<EOF > $PKG/install/slack-desc
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
|
Loading…
Reference in a new issue