network/bluejeans: Updated for version 2.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Igor Alexandrov 2019-12-19 22:44:59 +07:00 committed by Willy Sudiarto Raharjo
parent 09817566e4
commit e89986dc85
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 15 additions and 23 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for bluejeans
# Copyright 2019 Igor Alexandrov <igor.s.alexandrov@gmail.com>
# Copyright 2019 Igor Alexandrov <igora.vault@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bluejeans
VERSION=${VERSION:-1.37.22}
VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -40,6 +40,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
SRCNAM=BlueJeans
EXECNAM=bluejeans-v2
if [ "$ARCH" != "x86_64" ]; then
echo "$ARCH is not supported for $PRGNAM-$VERSION"
exit -1
@ -50,10 +53,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
rpm2cpio $CWD/$PRGNAM-$VERSION.$ARCH.rpm | cpio -idmv
rpm2cpio $CWD/$SRCNAM.rpm | cpio -idmv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
@ -63,21 +65,11 @@ find -L . \
find . -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
chmod 755 opt/bluejeans/bluejeans
patchelf --replace-needed libudev.so.0 libudev.so opt/bluejeans/bluejeans-bin
mkdir -p usr/{bin,doc/$PRGNAM-$VERSION,share/{applications,icons}}
ln -s ../../opt/$PRGNAM/$PRGNAM usr/bin
ln -s ../../../opt/$PRGNAM/$PRGNAM.desktop usr/share/applications
ln -s ../../../opt/$PRGNAM/credits.html usr/doc/$PRGNAM-$VERSION
cat $CWD/slack-desc > $PKG/usr/doc/$PRGNAM-$VERSION/slack-desc
mkdir -p usr/{bin,doc/$PRGNAM-$VERSION}
ln -s ../../opt/$SRCNAM/$EXECNAM usr/bin/$PRGNAM
ln -s ../../../opt/$SRCNAM/LICENSE.electron.txt usr/doc/$PRGNAM-$VERSION
ln -s ../../../opt/$SRCNAM/LICENSES.chromium.html usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
(cd opt/$PRGNAM/icons; find . -type d -exec mkdir -p ../../../usr/share/icons/{} \;)
for i in $(find opt/$PRGNAM/icons -type f); do
sd=$(echo $i | cut -d/ -f4-)
ln -s ../../$(echo $sd | sed 's:[^/][^/]*:..:g')/$i usr/share/icons/$sd
done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="bluejeans"
VERSION="1.37.22"
VERSION="2.0.0"
HOMEPAGE="https://www.bluejeans.com"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
DOWNLOAD_x86_64="https://swdl.bluejeans.com/desktop/linux/1.37/1.37.22/bluejeans-1.37.22.x86_64.rpm"
MD5SUM_x86_64="fa34e81272a0fc37ef03daa3ff881f15"
REQUIRES="patchelf"
DOWNLOAD_x86_64="https://swdl.bluejeans.com/desktop-app/linux/2.0.0/BlueJeans.rpm"
MD5SUM_x86_64="f1104b47a09a05e0f13bbfa59753cf68"
REQUIRES=""
MAINTAINER="Igor Alexandrov"
EMAIL="igor.s.alexandrov@gmail.com"
EMAIL="igora.vault@gmail.com"