diff options
author | Dario Nicodemi <dario.sbo@gmail.com> | 2019-07-25 02:06:03 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-07-27 08:06:16 +0700 |
commit | 82ab0faadff589fae575e4b974b910c967db2323 (patch) | |
tree | 70448cf5e3c129afacad79633baf42f80070dd2c /office | |
parent | 270aeb1a042b19da4da43f63fd5d8ae5903ee852 (diff) |
office/teams-for-linux: Added (messaging, conferencing, and collaboration program)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/teams-for-linux/README | 8 | ||||
-rw-r--r-- | office/teams-for-linux/doinst.sh | 9 | ||||
-rw-r--r-- | office/teams-for-linux/slack-desc | 19 | ||||
-rw-r--r-- | office/teams-for-linux/teams-for-linux.SlackBuild | 76 | ||||
-rw-r--r-- | office/teams-for-linux/teams-for-linux.info | 10 |
5 files changed, 122 insertions, 0 deletions
diff --git a/office/teams-for-linux/README b/office/teams-for-linux/README new file mode 100644 index 000000000000..356f0fbff326 --- /dev/null +++ b/office/teams-for-linux/README @@ -0,0 +1,8 @@ +Microsoft Teams is a unified communications platform that combines +persistent workplace chat, video meetings and file storage. + +This is the unofficial Microsoft Teams client for Linux by Ivelin +Velkov. It uses the Web App and wrapps it as a standalone application +using Electron. + +Only the 64bit version is available. diff --git a/office/teams-for-linux/doinst.sh b/office/teams-for-linux/doinst.sh new file mode 100644 index 000000000000..65c7e2eeb9aa --- /dev/null +++ b/office/teams-for-linux/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/office/teams-for-linux/slack-desc b/office/teams-for-linux/slack-desc new file mode 100644 index 000000000000..afcaf8573485 --- /dev/null +++ b/office/teams-for-linux/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +teams-for-linux: teams-for-linux (messaging, conferencing and collaboration program) +teams-for-linux: +teams-for-linux: Microsoft Teams is a unified communications platform that combines +teams-for-linux: persistent workplace chat, video meetings and file storage. +teams-for-linux: +teams-for-linux: This is the unofficial Microsoft Teams client for Linux by Ivelin +teams-for-linux: Velkov. It uses the Web App and wrapps it as a standalone application +teams-for-linux: using Electron. +teams-for-linux: +teams-for-linux: Only the 64bit version is available. +teams-for-linux:
\ No newline at end of file diff --git a/office/teams-for-linux/teams-for-linux.SlackBuild b/office/teams-for-linux/teams-for-linux.SlackBuild new file mode 100644 index 000000000000..5d3434d98927 --- /dev/null +++ b/office/teams-for-linux/teams-for-linux.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for teams-for-linux + +# Copyright 2019 Dario Nicodemi, Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=teams-for-linux +VERSION=${VERSION:-0.0.7} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ "$ARCH" != "x86_64" ]; then + echo "$ARCH is not supported." + exit 1 +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $PKG +ar p $CWD/${PRGNAM}_${VERSION}_amd64.deb data.tar.xz | tar -xvJ + +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 \ + \( -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 +ln -s /opt/$PRGNAM/teams $PKG/usr/bin/teams + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION +ln -s $PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -rf $PKG/usr/share/doc + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/office/teams-for-linux/teams-for-linux.info b/office/teams-for-linux/teams-for-linux.info new file mode 100644 index 000000000000..210ba451a0c2 --- /dev/null +++ b/office/teams-for-linux/teams-for-linux.info @@ -0,0 +1,10 @@ +PRGNAM="teams-for-linux" +VERSION="0.0.7" +HOMEPAGE="https://github.com/ivelkov/teams-for-linux" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/ivelkov/teams-for-linux/releases/download/v0.0.7/teams-for-linux_0.0.7_amd64.deb" +MD5SUM_x86_64="d069487a8350c3ae22381487897f2e76" +REQUIRES="" +MAINTAINER="Dario Nicodemi" +EMAIL="dario.sbo@gmail.com"
\ No newline at end of file |