Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: teams-1.3.00.5153
@ 2020-05-29  7:03 Piraty
  2020-05-29 13:54 ` abenson
  2020-05-29 22:05 ` abenson
  0 siblings, 2 replies; 3+ messages in thread
From: Piraty @ 2020-05-29  7:03 UTC (permalink / raw)
  To: ml

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

There is a new pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages microsoft-teams
https://github.com/void-linux/void-packages/pull/22398

[WIP] New package: teams-1.3.00.5153
- [ ] restricted?

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

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

From b3076fd69b37572cad729b741023a99ae50e0710 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Wed, 18 Dec 2019 22:38:08 +0100
Subject: [PATCH] New package: teams-1.3.00.5153

---
 srcpkgs/teams/files/teams-wrapper.sh |  2 ++
 srcpkgs/teams/template               | 43 ++++++++++++++++++++++++++++
 srcpkgs/teams/update                 |  2 ++
 3 files changed, 47 insertions(+)
 create mode 100755 srcpkgs/teams/files/teams-wrapper.sh
 create mode 100644 srcpkgs/teams/template
 create mode 100644 srcpkgs/teams/update

diff --git a/srcpkgs/teams/files/teams-wrapper.sh b/srcpkgs/teams/files/teams-wrapper.sh
new file mode 100755
index 00000000000..4c4a8d3bae8
--- /dev/null
+++ b/srcpkgs/teams/files/teams-wrapper.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+LD_LIBRARY_PATH=/usr/lib/teams exec /usr/lib/teams/teams "$@"
diff --git a/srcpkgs/teams/template b/srcpkgs/teams/template
new file mode 100644
index 00000000000..8372ee856f3
--- /dev/null
+++ b/srcpkgs/teams/template
@@ -0,0 +1,43 @@
+# Template file for 'teams'
+pkgname=teams
+version=1.3.00.5153
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz"
+short_desc="Official Microsoft Teams client"
+maintainer="Piraty <piraty1@inbox.ru>"
+license="custon:Proprietary"
+homepage="https://teams.microsoft.com/downloads"
+distfiles="https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${version}_amd64.deb"
+checksum=c928d01831b2ae9afd871172a6b56edf1d1c848655482973358f3d206375878d
+
+repository=nonfree
+#restricted=yes #really? LICENSE says it can be distributed...
+
+do_extract() {
+	ar p "${XBPS_SRCDISTDIR}/${pkgname}-${version}/teams_${version}_amd64.deb" data.tar.xz | tar --extract --xz -C .
+}
+
+do_install() {
+	# lets use a better wrapper than the provided one
+	vbin ${FILESDIR}/teams-wrapper.sh teams
+
+	vmkdir usr/lib/teams
+	vmkdir usr/share
+
+	cp -r usr/share/teams ${DESTDIR}/usr/lib/
+
+	for item in applications pixmaps ; do
+		cp -r usr/share/$item ${DESTDIR}/usr/share/$item
+	done
+
+	vlicense usr/share/teams/LICENSE
+	vlicense usr/share/teams/LICENSES.chromium.html
+}
+
+post_install() {
+	# purge bundled libraries, but keep libffmpeg.so (not provided by Void)
+	for item in libEGL.so libGLESv2.so swiftshader/libEGL.so swiftshader/libGLESv2.so ; do
+		rm ${DESTDIR}/usr/lib/teams/$item
+	done
+}
diff --git a/srcpkgs/teams/update b/srcpkgs/teams/update
new file mode 100644
index 00000000000..64b932f4206
--- /dev/null
+++ b/srcpkgs/teams/update
@@ -0,0 +1,2 @@
+site=https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/
+pattern='href="teams_\K[\d\.]+(?=_amd64\.deb")'

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

* Re: [WIP] New package: teams-1.3.00.5153
  2020-05-29  7:03 [PR PATCH] [WIP] New package: teams-1.3.00.5153 Piraty
@ 2020-05-29 13:54 ` abenson
  2020-05-29 22:05 ` abenson
  1 sibling, 0 replies; 3+ messages in thread
From: abenson @ 2020-05-29 13:54 UTC (permalink / raw)
  To: ml

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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/22398#issuecomment-635985007

Comment:
This was my take on it. [teams-bin](https://github.com/abenson/void-packages/commit/f8ac51e309cd375cec2633f1564b8828c97dccca)

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

* Re: [WIP] New package: teams-1.3.00.5153
  2020-05-29  7:03 [PR PATCH] [WIP] New package: teams-1.3.00.5153 Piraty
  2020-05-29 13:54 ` abenson
@ 2020-05-29 22:05 ` abenson
  1 sibling, 0 replies; 3+ messages in thread
From: abenson @ 2020-05-29 22:05 UTC (permalink / raw)
  To: ml

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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/22398#issuecomment-635985007

Comment:
This was my take on it. [teams-bin](https://github.com/abenson/void-packages/commit/5fbbe96fab5298628d053aedd5e8118839cd4049)

Edit: did some fixes.

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

end of thread, other threads:[~2020-05-29 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  7:03 [PR PATCH] [WIP] New package: teams-1.3.00.5153 Piraty
2020-05-29 13:54 ` abenson
2020-05-29 22:05 ` abenson

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).