| 1 | # .deb, .rpm and Arch packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages |
| 2 | # the file tree, substitutes its path for ${STAGE} and the binary's glibc floor for ${GLIBC_MIN} |
| 3 | # (nfpm doesn't expand env vars in `src` or `depends`) and exports VERSION, NFPM_ARCH, |
| 4 | # NFPM_PACMAN_ARCH and RUSTY_TEAMS_MAINTAINER. |
| 5 | # |
| 6 | # packaging/linux/package.sh --formats "deb rpm archlinux" |
| 7 | name: rusty-teams |
| 8 | arch: ${NFPM_ARCH} |
| 9 | platform: linux |
| 10 | version: ${VERSION} |
| 11 | # semver: 0.5.0-rc.1 becomes 0.5.0~rc.1 in deb/rpm, so pre-releases sort before the release. |
| 12 | version_schema: semver |
| 13 | release: 1 |
| 14 | section: net |
| 15 | priority: optional |
| 16 | maintainer: ${RUSTY_TEAMS_MAINTAINER} |
| 17 | homepage: https://github.com/danieldaeschle/rusty-teams |
| 18 | license: MIT |
| 19 | description: |- |
| 20 | A fast, native Microsoft Teams chat client. |
| 21 | Chats, channels, meetings and calls with video and screen sharing, desktop |
| 22 | notifications and a tray icon. Signs in through a Teams web page in a |
| 23 | Chromium- or Firefox-based browser and never sees the password. |
| 24 | |
| 25 | # Microsoft's discontinued Linux client (package `teams`) also installed /usr/bin/teams. |
| 26 | conflicts: |
| 27 | - teams |
| 28 | |
| 29 | # Linked directly (ELF NEEDED): glibc, libstdc++, libgcc_s, glib/gio/gobject, ALSA, fontconfig, |
| 30 | # freetype, xcb, xkbcommon and xkbcommon-x11. Loaded at runtime with dlopen, so the package |
| 31 | # tools can't see them: Wayland (libwayland-client) and X11 (libX11) for the window, Vulkan or |
| 32 | # EGL for wgpu. libwebrtc dlopens the rest only for calls (PulseAudio, PipeWire for Wayland |
| 33 | # screen sharing, VA-API/GBM/DRM for hardware video, the X11 extensions for X11 screen |
| 34 | # capture), so those are recommended rather than required. The Teams session runs in the |
| 35 | # user's own browser, suggested below. |
| 36 | overrides: |
| 37 | deb: |
| 38 | depends: |
| 39 | - libc6 (>= ${GLIBC_MIN}) |
| 40 | - libgcc-s1 |
| 41 | - libstdc++6 |
| 42 | - libglib2.0-0 |
| 43 | - libasound2 |
| 44 | - libfontconfig1 |
| 45 | - libfreetype6 |
| 46 | - libxcb1 |
| 47 | - libxkbcommon0 |
| 48 | - libxkbcommon-x11-0 |
| 49 | - libwayland-client0 |
| 50 | - libx11-6 |
| 51 | - libvulkan1 | libegl1 |
| 52 | recommends: |
| 53 | - mesa-vulkan-drivers |
| 54 | - libegl1 |
| 55 | - libwayland-egl1 |
| 56 | - libpulse0 |
| 57 | - libpipewire-0.3-0 |
| 58 | - libva2 |
| 59 | - libva-drm2 |
| 60 | - libdrm2 |
| 61 | - libgbm1 |
| 62 | - libxcomposite1 |
| 63 | - libxdamage1 |
| 64 | - libxext6 |
| 65 | - libxfixes3 |
| 66 | - libxrandr2 |
| 67 | - xdg-desktop-portal |
| 68 | suggests: |
| 69 | - chromium | google-chrome-stable | firefox | firefox-esr |
| 70 | rpm: |
| 71 | # Soname provides rather than package names, so the same requirements resolve on Fedora/RHEL |
| 72 | # (libxkbcommon-x11, libX11, ...) and openSUSE (libxkbcommon-x11-0, libX11-6, ...). |
| 73 | depends: |
| 74 | - libc.so.6(GLIBC_${GLIBC_MIN})(64bit) |
| 75 | - libstdc++.so.6()(64bit) |
| 76 | - libglib-2.0.so.0()(64bit) |
| 77 | - libgio-2.0.so.0()(64bit) |
| 78 | - libgobject-2.0.so.0()(64bit) |
| 79 | - libasound.so.2()(64bit) |
| 80 | - libfontconfig.so.1()(64bit) |
| 81 | - libfreetype.so.6()(64bit) |
| 82 | - libxcb.so.1()(64bit) |
| 83 | - libxkbcommon.so.0()(64bit) |
| 84 | - libxkbcommon-x11.so.0()(64bit) |
| 85 | - libwayland-client.so.0()(64bit) |
| 86 | - libX11.so.6()(64bit) |
| 87 | - (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit)) |
| 88 | recommends: |
| 89 | - mesa-vulkan-drivers |
| 90 | - libpulse.so.0()(64bit) |
| 91 | - libpipewire-0.3.so.0()(64bit) |
| 92 | - libva.so.2()(64bit) |
| 93 | - libgbm.so.1()(64bit) |
| 94 | - xdg-desktop-portal |
| 95 | archlinux: |
| 96 | arch: ${NFPM_PACMAN_ARCH} |
| 97 | depends: |
| 98 | - glibc>=${GLIBC_MIN} |
| 99 | - gcc-libs |
| 100 | - glib2 |
| 101 | - alsa-lib |
| 102 | - fontconfig |
| 103 | - freetype2 |
| 104 | - libxcb |
| 105 | - libxkbcommon |
| 106 | - wayland |
| 107 | - libx11 |
| 108 | - vulkan-icd-loader |
| 109 | - libglvnd |
| 110 | recommends: |
| 111 | - mesa |
| 112 | - libpulse |
| 113 | - pipewire |
| 114 | - libva |
| 115 | - xdg-desktop-portal |
| 116 | - libxcomposite |
| 117 | - libxdamage |
| 118 | - libxext |
| 119 | - libxfixes |
| 120 | - libxrandr |
| 121 | |
| 122 | contents: |
| 123 | - src: ${STAGE}/usr/bin/teams |
| 124 | dst: /usr/bin/teams |
| 125 | file_info: { mode: 0755 } |
| 126 | - src: ${STAGE}/usr/share/ |
| 127 | dst: /usr/share/ |
| 128 | type: tree |
| 129 | |
| 130 | scripts: |
| 131 | postinstall: packaging/linux/postinst.sh |
| 132 | postremove: packaging/linux/postinst.sh |