BlueGit

ict rusty-teams

Files

rusty-teams / packaging / linux / nfpm.yaml

nfpm.yaml

feat(packaging): Linux AppImage, deb, rpm and Flatpak
metis Samuel David Merlin Kemper · pushed by metis · 2 weeks ago
228f36c5 History
nfpm.yaml 3.5 KiB Download Raw
1# .deb and .rpm 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 and
4# RUSTY_TEAMS_MAINTAINER.
5#
6# packaging/linux/package.sh --formats "deb rpm"
7name: rusty-teams
8arch: ${NFPM_ARCH}
9platform: linux
10version: ${VERSION}
11# semver: 0.5.0-rc.1 becomes 0.5.0~rc.1 in deb/rpm, so pre-releases sort before the release.
12version_schema: semver
13release: 1
14section: net
15priority: optional
16maintainer: ${RUSTY_TEAMS_MAINTAINER}
17homepage: https://github.com/danieldaeschle/rusty-teams
18license: MIT
19description: |-
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.
26conflicts:
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.
36overrides:
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
96contents:
97 - src: ${STAGE}/usr/bin/teams
98 dst: /usr/bin/teams
99 file_info: { mode: 0755 }
100 - src: ${STAGE}/usr/share/
101 dst: /usr/share/
102 type: tree
103
104scripts:
105 postinstall: packaging/linux/postinst.sh
106 postremove: packaging/linux/postinst.sh