diff options
Diffstat (limited to 'network/bluejeans/bluejeans.SlackBuild')
-rw-r--r-- | network/bluejeans/bluejeans.SlackBuild | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/network/bluejeans/bluejeans.SlackBuild b/network/bluejeans/bluejeans.SlackBuild index 5544a07e03924..aa178c8c6e215 100644 --- a/network/bluejeans/bluejeans.SlackBuild +++ b/network/bluejeans/bluejeans.SlackBuild @@ -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 |