summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--teams-for-linux/PKGBUILD90
-rw-r--r--teams-for-linux/teams-for-linux.desktop11
2 files changed, 101 insertions, 0 deletions
diff --git a/teams-for-linux/PKGBUILD b/teams-for-linux/PKGBUILD
new file mode 100644
index 000000000..5e20f67e2
--- /dev/null
+++ b/teams-for-linux/PKGBUILD
@@ -0,0 +1,90 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Fredy GarcĂ­a <frealgagu at gmail dot com>
+# Contributor: Ivelin Velkov <ivelin dot velkov at gmail dot com>
+
+pkgname=teams-for-linux
+pkgver=1.0.23
+pkgrel=1
+pkgdesc="Unofficial Microsoft Teams client for Linux using Electron."
+arch=("aarch64" "armv7h" "i686" "x86_64")
+url="https://github.com/IsmaelMartinez/${pkgname}"
+license=("GPL3")
+_pinned_dependencies=(
+ 'at-spi2-atk=2.38.0'
+ 'at-spi2-core=2.42.0'
+ 'cairo=1.17.4'
+ 'gcc-libs=11.2.0'
+ 'glibc>=2.35'
+ 'libatk-1.0.so=0'
+ 'libcups=1:2.4.1'
+ 'libdbus-1.so=3'
+ 'libdrm=2.4.110'
+ 'libexpat.so=1'
+ 'libgdk_pixbuf-2.0.so=0'
+ 'libgio-2.0.so=0'
+ 'libglib-2.0.so=0'
+ 'libgmodule-2.0.so=0'
+ 'libgobject-2.0.so=0'
+ 'libgtk-3.so=0'
+ 'libpango-1.0.so=0'
+ 'libx11=1.7.3.1'
+ 'libxcb=1.14'
+ 'libxcomposite=0.4.5'
+ 'libxdamage=1.1.5'
+ 'libxext=1.3.4'
+ 'libxfixes=6.0.0'
+ 'libxkbcommon.so=0'
+ 'libxrandr=1.5.2'
+ 'libxshmfence=1.3'
+ 'mesa=21.3.6'
+ 'nspr=4.33'
+ 'nss=3.75'
+)
+depends=("gtk3" "libxss" "${_pinned_dependencies[@]}")
+makedepends=('nodejs-lts-fermium' "node-gyp" "python2" "yarn")
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/IsmaelMartinez/${pkgname}/archive/v${pkgver}.tar.gz"
+ "${pkgname}.desktop"
+)
+sha256sums=(
+ "2626c58e0e1a69be9f29bb1c542f013fa75d4ebd0e409c44a6a59be707dd78ed"
+ "f33ab4997c329567bbe172fe77ee6cbced5c5d4354e12ef52a89dd702422fded"
+)
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ yarn install --non-interactive --pure-lockfile --cache-folder "${srcdir}/yarn-cache"
+ if [[ ${CARCH} == "aarch64" ]]; then
+ yarn electron-builder build --arm64 --linux dir
+ elif [[ ${CARCH} == "armv7h" ]]; then
+ yarn electron-builder build --armv7l --linux dir
+ elif [[ ${CARCH} == "i686" ]]; then
+ yarn electron-builder build --ia32 --linux dir
+ elif [[ ${CARCH} == "x86_64" ]]; then
+ yarn electron-builder build --x64 --linux dir
+ fi
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -dm755 "${pkgdir}/opt" "${pkgdir}/usr/bin"
+
+ if [[ ${CARCH} == "aarch64" ]]; then
+ _unpacked_dirname="linux-arm64-unpacked"
+ elif [[ ${CARCH} == "armv7h" ]]; then
+ _unpacked_dirname="linux-armv7l-unpacked"
+ elif [[ ${CARCH} == "i686" ]]; then
+ _unpacked_dirname="linux-ia32-unpacked"
+ elif [[ ${CARCH} == "x86_64" ]]; then
+ _unpacked_dirname="linux-unpacked"
+ fi
+
+ cp -r --preserve=mode "${srcdir}/${pkgname}-${pkgver}/dist/${_unpacked_dirname}" "${pkgdir}/opt/${pkgname}"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ for _file in "${srcdir}/${pkgname}-${pkgver}/build/icons/"*.png
+ do
+ _filename="$(basename ${_file})"
+ install -Dm644 "${_file}" "${pkgdir}/usr/share/icons/hicolor/${_filename%.png}/apps/${pkgname}.png"
+ done
+ ln -sf "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}
diff --git a/teams-for-linux/teams-for-linux.desktop b/teams-for-linux/teams-for-linux.desktop
new file mode 100644
index 000000000..7680790da
--- /dev/null
+++ b/teams-for-linux/teams-for-linux.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=Microsoft Teams for Linux
+Comment=Unofficial Microsoft Teams client for Linux.
+GenericName=Teams
+Exec=teams-for-linux
+Icon=teams-for-linux
+Categories=Network;Chat;InstantMessaging;Application;
+Terminal=false
+StartupNotify=true
+Version=0.1.9