From: TheKeyboard3 <TheKeyboard3@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: teams-for-linux-1.0.45
Date: Wed, 18 Jan 2023 08:20:33 +0100 [thread overview]
Message-ID: <20230118072033.MbSzlr7rEcuxJTUKHyI2k4i2ohdDByC9W4Wl1EdPDRM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
[-- 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
+}
next parent reply other threads:[~2023-01-18 7:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41705@inbox.vuxu.org>
2023-01-18 7:20 ` TheKeyboard3 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230118072033.MbSzlr7rEcuxJTUKHyI2k4i2ohdDByC9W4Wl1EdPDRM@z \
--to=thekeyboard3@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).