development/dbeaver: Updated for version 3.5.8.

Archives for 3.4.1 are no longer available.
Fixed build on i586.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-23 14:00:26 +00:00 committed by Willy Sudiarto Raharjo
parent c3afac1a66
commit 9daeef7096
2 changed files with 30 additions and 45 deletions

View file

@ -23,17 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dbeaver
VERSION=${VERSION:-3.4.1}
VERSION=${VERSION:-3.5.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
ARCH=${ARCH:-$(uname -m)}
case "$ARCH" in
i?86) ARCH=i586; SRCARCH=x86 ;;
x86_64) SRCARCH=x86_64 ;;
*) echo "$ARCH is not supported"; exit 1 ;;
esac
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@ -43,35 +42,15 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG/opt $PKG/usr/bin $OUTPUT
mkdir -p $TMP $PKG $OUTPUT
cd $PKG/opt
case "$ARCH" in
i?86)
ARCH=i586
unzip -o $CWD/$PRGNAM-$VERSION-*x86.zip
;;
x86_64)
unzip -o $CWD/$PRGNAM-$VERSION-*x86_64.zip
;;
*)
echo "$ARCH is not supported";
exit 1
;;
esac
cd $PKG/opt/$PRGNAM
unzip -o $CWD/driver-pack-$VERSION.zip
cat << EOF > $PKG/usr/bin/$PRGNAM
#!/bin/sh
cd \$HOME
/opt/$PRGNAM/$PRGNAM \$@
EOF
chmod 0755 $PKG/usr/bin/$PRGNAM
cd $PKG
SRCNAM=dbeaver-ee
SRCVER=$VERSION-linux.gtk.$SRCARCH
DESTDIR=$PKG/opt/$PRGNAM
mkdir -p $DESTDIR
cd $DESTDIR
tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -79,11 +58,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/bin
cat << EOF > $PKG/usr/bin/$PRGNAM
#!/bin/sh
cd \$HOME
/opt/$PRGNAM/$PRGNAM \$@
EOF
chmod 0755 $PKG/usr/bin/$PRGNAM
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $PKG/opt/$PRGNAM/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
$DESTDIR/readme.txt $DESTDIR/licenses/* \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,14 +1,10 @@
PRGNAM="dbeaver"
VERSION="3.4.1"
VERSION="3.5.8"
HOMEPAGE="http://dbeaver.jkiss.org"
DOWNLOAD="http://dbeaver.jkiss.org/files/dbeaver-3.4.1-ee-linux.gtk.x86.zip \
http://dbeaver.jkiss.org/files/driver-pack-3.4.1.zip"
MD5SUM="fb229a877b4ffd4040f12480a61ff70f \
37856a2a96a3ee5ab07c5e391cde931a"
DOWNLOAD_x86_64="http://dbeaver.jkiss.org/files/dbeaver-3.4.1-ee-linux.gtk.x86_64.zip \
http://dbeaver.jkiss.org/files/driver-pack-3.4.1.zip"
MD5SUM_x86_64="cf9e08ab563daa2158bf2d8e5e10dad4 \
37856a2a96a3ee5ab07c5e391cde931a"
DOWNLOAD="http://dbeaver.jkiss.org/files/3.5.8/dbeaver-ee-3.5.8-linux.gtk.x86.tar.gz"
MD5SUM="8a18c465e1759e19045079272c16f033"
DOWNLOAD_x86_64="http://dbeaver.jkiss.org/files/3.5.8/dbeaver-ee-3.5.8-linux.gtk.x86_64.tar.gz"
MD5SUM_x86_64="781c64ce59b5ad647608024bf4334a4a"
REQUIRES="jdk"
MAINTAINER="Antonio Hernández Blas"
EMAIL="hba.nihilismus@gmail.com"