Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [PR PATCH] [Updated] [WIP] New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
@ 2023-01-18  7:20 ` TheKeyboard3
  2023-01-18 15:44 ` unrealjo
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: TheKeyboard3 @ 2023-01-18  7:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

There is an updated pull request by TheKeyboard3 against master on the void-packages repository

https://github.com/TheKeyboard3/void-packages-fork teams-for-linux-2
https://github.com/void-linux/void-packages/pull/41705

[WIP] New package: teams-for-linux-1.0.45
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64 (from x86_64-musl)
  - x86_64-musl (from x86_64)


A patch file from https://github.com/void-linux/void-packages/pull/41705.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-teams-for-linux-2-41705.patch --]
[-- Type: text/x-diff, Size: 4857 bytes --]

From 7984c26d0a2214c03eb96b0ae72ac77279af6b28 Mon Sep 17 00:00:00 2001
From: TheKeyboard3 <TheKeyboard3@gmail.com>
Date: Tue, 17 Jan 2023 23:22:33 +0200
Subject: [PATCH] New package: teams-for-linux-1.0.45

---
 .../files/teams-for-linux.desktop             |  9 +++
 srcpkgs/teams-for-linux/template              | 72 +++++++++++++++++++
 2 files changed, 81 insertions(+)
 create mode 100644 srcpkgs/teams-for-linux/files/teams-for-linux.desktop
 create mode 100644 srcpkgs/teams-for-linux/template

diff --git a/srcpkgs/teams-for-linux/files/teams-for-linux.desktop b/srcpkgs/teams-for-linux/files/teams-for-linux.desktop
new file mode 100644
index 000000000000..5fddd3f5703e
--- /dev/null
+++ b/srcpkgs/teams-for-linux/files/teams-for-linux.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Teams For Linux
+Comment=Unofficial Microsoft Teams client for Linux using Electron
+Exec=teams-for-linux
+Terminal=false
+Type=Application
+Icon=teams-for-linux
+Categories=Chat;Network;VideoConference
+StartupWMClass=teams-for-linux
diff --git a/srcpkgs/teams-for-linux/template b/srcpkgs/teams-for-linux/template
new file mode 100644
index 000000000000..aac6582a05f7
--- /dev/null
+++ b/srcpkgs/teams-for-linux/template
@@ -0,0 +1,72 @@
+# Template file for 'teams-for-linux'
+pkgname=teams-for-linux
+version=1.0.45
+revision=1
+archs="aarch64 aarch64-musl armv7h armv7h-musl i686 i686-musl x86_64 x86_64-musl"
+_electron_ver=19
+hostmakedepends="electron${_electron_ver} yarn app-builder"
+depends="electron${_electron_ver}"
+short_desc="Unofficial Microsoft Teams client for Linux using Electron"
+maintainer="TheKeyboard3 <TheKeyboard3@gmail.com>"
+license="GPL-3.0-only"
+homepage="https://github.com/IsmaelMartinez/teams-for-linux"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=0135ab728093ef67a135bd5351e6059e088a18ababf0bec6f17d5cd0b2463039
+export USE_SYSTEM_APP_BUILDER=true
+
+do_configure() {
+	# we can't make electron skip binary download as that fails in do_build
+	# so instead, force a bogus architecture so it downloads its binary
+	# artifact, it will use the system one later anyway
+	# but this appears to fail on i686, so don't override there
+
+	local carch=x64
+	case "$XBPS_TARGET_MACHINE" in
+		i686*) carch=ia32 ;;
+	esac
+	npm_config_arch=$carch \
+		yarn upgrade electron@"$(</usr/lib/electron${_electron_ver}/version)" \
+			--non-interactive
+}
+
+do_build() {
+	yarn install --non-interactive --pure-lockfile --cache-folder "${srcdir}/yarn-cache"
+	export NODE_ENV=production
+	if [[ ${XBPS_TARGET_MACHINE} == "aarch64" ]] || [[ ${XBPS_TARGET_MACHINE} == "aarch64-musl" ]]; then
+		yarn electron-builder build --arm64 --linux --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+	elif [[ ${XBPS_TARGET_MACHINE} == "armv7hf" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7hf-musl" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7l" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7l-musl" ]]; then
+		yarn electron-builder build --armv7l --linux --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+	elif [[ ${XBPS_TARGET_MACHINE} == "i686" ]] || [[ ${XBPS_TARGET_MACHINE} == "i686-musl" ]]; then
+		yarn electron-builder build --ia32 --linux --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+	elif [[ ${XBPS_TARGET_MACHINE} == "x86_64" ]] || [[ ${XBPS_TARGET_MACHINE} == "x86_64-musl" ]]; then
+		yarn electron-builder build --x64 --linux --dir \
+		-c.electronDist=/usr/lib/electron${_electron_ver} \
+		-c.electronVersion="$(</usr/lib/electron${_electron_ver}/version)"
+	fi
+}
+
+do_install() {
+	if [[ ${XBPS_TARGET_MACHINE} == "aarch64" ]] || [[ ${XBPS_TARGET_MACHINE} == "aarch64-musl" ]]; then
+		_unpacked_dirname="linux-arm64-unpacked"
+	elif [[ ${XBPS_TARGET_MACHINE} == "armv7hf" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7hf-musl" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7l" ]] || [[ ${XBPS_TARGET_MACHINE} == "armv7l-musl" ]]; then
+		_unpacked_dirname="linux-armv7l-unpacked"
+	elif [[ ${XBPS_TARGET_MACHINE} == "i686" ]] || [[ ${XBPS_TARGET_MACHINE} == "i686-musl" ]]; then
+		_unpacked_dirname="linux-ia32-unpacked"
+	elif [[ ${XBPS_TARGET_MACHINE} == "x86_64" ]] || [[ ${XBPS_TARGET_MACHINE} == "x86_64-musl" ]]; then
+		_unpacked_dirname="linux-unpacked"
+	fi
+	vinstall "${FILESDIR}/teams-for-linux.desktop" 644 usr/share/applications
+	vinstall build/icons/512x512.png 644 usr/share/icons/hicolor/512x512/apps teams-for-linux.png
+	cat > teams-for-linux <<-EOF
+	#!/bin/sh
+	exec electron${_electron_ver} /usr/lib/${pkgname}.asar "\$@"
+	EOF
+	vbin teams-for-linux
+	vinstall "dist/${_unpacked_dirname}/resources/app.asar"  644 /usr/lib teams-for-linux.asar
+}

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
  2023-01-18  7:20 ` [PR PATCH] [Updated] [WIP] New package: teams-for-linux-1.0.45 TheKeyboard3
@ 2023-01-18 15:44 ` unrealjo
  2023-01-18 19:05 ` TheKeyboard3
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: unrealjo @ 2023-01-18 15:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

New comment by unrealjo on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1387278258

Comment:
There is  already the [teams-bin](https://github.com/void-linux/void-packages/tree/7228fed9f09fd65137ebf71c54a1bf591f0e7d68/srcpkgs/teams-bin) package !?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
  2023-01-18  7:20 ` [PR PATCH] [Updated] [WIP] New package: teams-for-linux-1.0.45 TheKeyboard3
  2023-01-18 15:44 ` unrealjo
@ 2023-01-18 19:05 ` TheKeyboard3
  2023-01-18 19:07 ` TheKeyboard3
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: TheKeyboard3 @ 2023-01-18 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by TheKeyboard3 on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1387613083

Comment:
Yes, but teams-bin is not available for musl, or any architecture besides x86_64. It is also not open source

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2023-01-18 19:05 ` TheKeyboard3
@ 2023-01-18 19:07 ` TheKeyboard3
  2023-01-18 19:07 ` TheKeyboard3
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: TheKeyboard3 @ 2023-01-18 19:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

New comment by TheKeyboard3 on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1387617322

Comment:
> There is already the [teams-bin](https://github.com/void-linux/void-packages/tree/7228fed9f09fd65137ebf71c54a1bf591f0e7d68/srcpkgs/teams-bin) package !?
Yes, but teams-bin is not available for musl, or any architecture besides x86_64. It is also not open source


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2023-01-18 19:07 ` TheKeyboard3
@ 2023-01-18 19:07 ` TheKeyboard3
  2023-01-18 19:08 ` TheKeyboard3
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: TheKeyboard3 @ 2023-01-18 19:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by TheKeyboard3 on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1387613083

Comment:
Yes, but teams-bin is not available for musl, or any architecture besides x86_64. It is also not open source

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2023-01-18 19:07 ` TheKeyboard3
@ 2023-01-18 19:08 ` TheKeyboard3
  2023-04-19  1:54 ` github-actions
  2023-05-04  1:51 ` [PR PATCH] [Closed]: " github-actions
  7 siblings, 0 replies; 8+ messages in thread
From: TheKeyboard3 @ 2023-01-18 19:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

New comment by TheKeyboard3 on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1387617322

Comment:
> There is already the [teams-bin](https://github.com/void-linux/void-packages/tree/7228fed9f09fd65137ebf71c54a1bf591f0e7d68/srcpkgs/teams-bin) package !?
>
Yes, but teams-bin is not available for musl, or any architecture besides x86_64. It is also not open source


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2023-01-18 19:08 ` TheKeyboard3
@ 2023-04-19  1:54 ` github-actions
  2023-05-04  1:51 ` [PR PATCH] [Closed]: " github-actions
  7 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2023-04-19  1:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/41705#issuecomment-1514023739

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Closed]: New package: teams-for-linux-1.0.45
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
                   ` (6 preceding siblings ...)
  2023-04-19  1:54 ` github-actions
@ 2023-05-04  1:51 ` github-actions
  7 siblings, 0 replies; 8+ messages in thread
From: github-actions @ 2023-05-04  1:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

There's a closed pull request on the void-packages repository

New package: teams-for-linux-1.0.45
https://github.com/void-linux/void-packages/pull/41705

Description:
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64 (from x86_64-musl)
  - x86_64-musl (from x86_64)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-05-04  1:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
2023-01-18  7:20 ` [PR PATCH] [Updated] [WIP] New package: teams-for-linux-1.0.45 TheKeyboard3
2023-01-18 15:44 ` unrealjo
2023-01-18 19:05 ` TheKeyboard3
2023-01-18 19:07 ` TheKeyboard3
2023-01-18 19:07 ` TheKeyboard3
2023-01-18 19:08 ` TheKeyboard3
2023-04-19  1:54 ` github-actions
2023-05-04  1:51 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).