webex: Add build tag and package type

This commit is contained in:
Eugen Wissner 2022-08-02 21:17:44 +02:00
parent 1a15a5c6fa
commit 94de3baf32
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
3 changed files with 34 additions and 25 deletions

View File

@ -8,7 +8,8 @@
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
webex: webex (Webex for Linux) webex: webex (Webex for Linux)
webex: webex:
webex: Webex for Linux. webex: The all new Webex App is one easy-to-use and secure app you can use to
webex: call, message, meet, and get work done.
webex: webex:
webex: Homepage: https://www.webex.com webex: Homepage: https://www.webex.com
webex: webex:
@ -16,4 +17,3 @@ webex:
webex: webex:
webex: webex:
webex: webex:
webex:

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# Slackware build script for webex
# Copyright 2022 Eugen Wissner, Dachau, Germany # Copyright 2022 Eugen Wissner, Dachau, Germany
# All rights reserved. # All rights reserved.
# #
@ -20,40 +22,47 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=webex PRGNAM=webex
VERSION=${VERSION:-42.7.0.22904}
# Allow $ARCH to be preset before running the script. This is useful in the
# case where someone is running a 32-bit chroot environment under an x86_64
# kernel:
ARCH=${ARCH:-$(uname -m)}
case "$ARCH" in
i?86) DEBARCH="i386" ; LIBDIRSUFFIX="" ; ARCH=i386 ;;
x86_64) DEBARCH="amd64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
# Get the version from the Debian/Ubuntu .deb (thanks to Fred Richards):
VERSION=$(ar p Webex.deb control.tar.xz 2> /dev/null | tar JxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
if [ -z "$VERSION" ]; then # try to use control.tar.gz instead:
VERSION=$(ar p Webex.deb control.tar.gz 2> /dev/null | tar zxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
fi
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$ARCH" in
i?86) ARCH=i386 ;;
*) ARCH=$( uname -m ) ;;
esac
fi
VERSION=$(ar p Webex.deb control.tar.gz 2> /dev/null | tar zxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
CWD=$(pwd)
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $PKG cd $PKG
ar p $CWD/Webex.deb data.tar.xz | tar xJv || exit 1 ar p $CWD/Webex.deb data.tar.xz | tar xJv || exit 1
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
# Make sure top-level perms are correct: -o -perm 511 \) -exec chmod 755 {} \; -o \
chmod 0755 . \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Install a .desktop launcher: # Install a .desktop launcher:
mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/applications
@ -70,4 +79,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.txz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.$PKGTYPE

View File

@ -1,7 +1,7 @@
PRGNAM="webex" PRGNAM="webex"
VERSION="42.7.0.22904" VERSION="42.7.0.22904"
HOMEPAGE="https://www.webex.com" HOMEPAGE="https://www.webex.com"
DOWNLOAD="" DOWNLOAD="UNSUPPORTED"
MD5SUM="" MD5SUM=""
DOWNLOAD_x86_64="https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb" DOWNLOAD_x86_64="https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb"
MD5SUM_x86_64="626355056191a0e03fed56422812c0d6" MD5SUM_x86_64="626355056191a0e03fed56422812c0d6"