Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] discord-ptb: update to 0.0.36.
@ 2022-12-06 22:55 0x5c
  2022-12-06 23:38 ` [PR REVIEW] " classabbyamp
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: 0x5c @ 2022-12-06 22:55 UTC (permalink / raw)
  To: ml

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

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

https://github.com/0x5c/void-packages update/discord-ptb
https://github.com/void-linux/void-packages/pull/40949

discord-ptb: update to 0.0.36.
Switch away from the janky EULA download setup in favour of a file that links to the actual current version of the terms, just like the discord package.

<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/discord-ptb-40949.patch --]
[-- Type: text/x-diff, Size: 2489 bytes --]

From f5133bca1cc5b90fed66317310219980a6693420 Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Tue, 6 Dec 2022 17:50:51 -0500
Subject: [PATCH] discord-ptb: update to 0.0.36.

Switch away from the janky EULA download setup in favour of a file that links
to the actual current version of the terms, just like the discord package.
---
 srcpkgs/discord-ptb/files/LICENSE |  1 +
 srcpkgs/discord-ptb/template      | 23 ++++++-----------------
 2 files changed, 7 insertions(+), 17 deletions(-)
 create mode 100644 srcpkgs/discord-ptb/files/LICENSE

diff --git a/srcpkgs/discord-ptb/files/LICENSE b/srcpkgs/discord-ptb/files/LICENSE
new file mode 100644
index 000000000000..b489d410a1db
--- /dev/null
+++ b/srcpkgs/discord-ptb/files/LICENSE
@@ -0,0 +1 @@
+The current version of this license can be found at: https://discord.com/terms
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index 6b722395e1ee..03d18e1e95ab 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -1,9 +1,8 @@
 # Template file for 'discord-ptb'
 pkgname=discord-ptb
-version=0.0.35
-revision=3
+version=0.0.36
+revision=1
 archs="x86_64"
-hostmakedepends="w3m"
 depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
  xdg-utils webrtc-audio-processing"
 short_desc="Chat and VoIP application (preview version)"
@@ -11,24 +10,12 @@ maintainer="0x5c <dev@0x5c.io>"
 license="custom:Proprietary"
 homepage="https://discord.com/"
 distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
-checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
+checksum=8fa4695d8d88c423a9ad283bba0812d4cf5cb8e3e8d3bcca755dc9c6c1890c08
 nopie=yes
 restricted=yes
 repository=nonfree
 nostrip=yes
 
-post_extract() {
-	local _license_checksum=bbe45a50d92f383311376477dd6ebecefff801b5d47685757107b6f771cac58d
-	$XBPS_FETCH_CMD -o eula https://discord.com/terms
-	w3m -dump -I utf-8 -T text/html eula |
-		sed -n '/Discord is your place/,/^Imagine a place$/p' > EULA
-
-	filesum="$(xbps-digest EULA)"
-	if [ "$filesum" != "$_license_checksum" ]; then
-		msg_error "SHA256 mismatch for EULA:\n$filesum\n"
-	fi
-}
-
 do_install() {
 	local package_location="usr/lib/$pkgname" item
 	vmkdir usr/share/pixmaps
@@ -44,6 +31,8 @@ do_install() {
 	done
 	vmkdir usr/bin
 	ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
+}
 
-	vlicense EULA
+post_install() {
+	vlicense $FILESDIR/LICENSE
 }

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

* Re: [PR REVIEW] discord-ptb: update to 0.0.36.
  2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
@ 2022-12-06 23:38 ` classabbyamp
  2022-12-06 23:52 ` 0x5c
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2022-12-06 23:38 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/40949#discussion_r1041585626

Comment:
just put the vlicense in do_install

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

* Re: [PR REVIEW] discord-ptb: update to 0.0.36.
  2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
  2022-12-06 23:38 ` [PR REVIEW] " classabbyamp
@ 2022-12-06 23:52 ` 0x5c
  2022-12-08 22:08 ` [PR PATCH] [Updated] " 0x5c
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2022-12-06 23:52 UTC (permalink / raw)
  To: ml

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

New review comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/pull/40949#discussion_r1041594497

Comment:
I mirrored the discord package

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

* Re: [PR PATCH] [Updated] discord-ptb: update to 0.0.36.
  2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
  2022-12-06 23:38 ` [PR REVIEW] " classabbyamp
  2022-12-06 23:52 ` 0x5c
@ 2022-12-08 22:08 ` 0x5c
  2022-12-08 22:53 ` [PR PATCH] [Updated] discord-ptb: update to 0.0.37 0x5c
  2022-12-08 22:55 ` [PR PATCH] [Merged]: discord-ptb: update to 0.0.38 classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2022-12-08 22:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/0x5c/void-packages update/discord-ptb
https://github.com/void-linux/void-packages/pull/40949

discord-ptb: update to 0.0.36.
Switch away from the janky EULA download setup in favour of a file that links to the actual current version of the terms, just like the discord package.

<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/discord-ptb-40949.patch --]
[-- Type: text/x-diff, Size: 2489 bytes --]

From 82fbf87dbe7ddeaa8ed3094e57a3f4c20dddbfde Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Tue, 6 Dec 2022 17:50:51 -0500
Subject: [PATCH] discord-ptb: update to 0.0.37.

Switch away from the janky EULA download setup in favour of a file that links
to the actual current version of the terms, just like the discord package.
---
 srcpkgs/discord-ptb/files/LICENSE |  1 +
 srcpkgs/discord-ptb/template      | 23 ++++++-----------------
 2 files changed, 7 insertions(+), 17 deletions(-)
 create mode 100644 srcpkgs/discord-ptb/files/LICENSE

diff --git a/srcpkgs/discord-ptb/files/LICENSE b/srcpkgs/discord-ptb/files/LICENSE
new file mode 100644
index 000000000000..b489d410a1db
--- /dev/null
+++ b/srcpkgs/discord-ptb/files/LICENSE
@@ -0,0 +1 @@
+The current version of this license can be found at: https://discord.com/terms
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index 6b722395e1ee..e5fa29968d5d 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -1,9 +1,8 @@
 # Template file for 'discord-ptb'
 pkgname=discord-ptb
-version=0.0.35
-revision=3
+version=0.0.37
+revision=1
 archs="x86_64"
-hostmakedepends="w3m"
 depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
  xdg-utils webrtc-audio-processing"
 short_desc="Chat and VoIP application (preview version)"
@@ -11,24 +10,12 @@ maintainer="0x5c <dev@0x5c.io>"
 license="custom:Proprietary"
 homepage="https://discord.com/"
 distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
-checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
+checksum=03ba8887595e81091339b7cc7c469ae0f3cb2ae867fb1b5dcc9b8637fd885aa1
 nopie=yes
 restricted=yes
 repository=nonfree
 nostrip=yes
 
-post_extract() {
-	local _license_checksum=bbe45a50d92f383311376477dd6ebecefff801b5d47685757107b6f771cac58d
-	$XBPS_FETCH_CMD -o eula https://discord.com/terms
-	w3m -dump -I utf-8 -T text/html eula |
-		sed -n '/Discord is your place/,/^Imagine a place$/p' > EULA
-
-	filesum="$(xbps-digest EULA)"
-	if [ "$filesum" != "$_license_checksum" ]; then
-		msg_error "SHA256 mismatch for EULA:\n$filesum\n"
-	fi
-}
-
 do_install() {
 	local package_location="usr/lib/$pkgname" item
 	vmkdir usr/share/pixmaps
@@ -44,6 +31,8 @@ do_install() {
 	done
 	vmkdir usr/bin
 	ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
+}
 
-	vlicense EULA
+post_install() {
+	vlicense $FILESDIR/LICENSE
 }

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

* Re: [PR PATCH] [Updated] discord-ptb: update to 0.0.37.
  2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
                   ` (2 preceding siblings ...)
  2022-12-08 22:08 ` [PR PATCH] [Updated] " 0x5c
@ 2022-12-08 22:53 ` 0x5c
  2022-12-08 22:55 ` [PR PATCH] [Merged]: discord-ptb: update to 0.0.38 classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: 0x5c @ 2022-12-08 22:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/0x5c/void-packages update/discord-ptb
https://github.com/void-linux/void-packages/pull/40949

discord-ptb: update to 0.0.37.
Switch away from the janky EULA download setup in favour of a file that links to the actual current version of the terms, just like the discord package.

<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update/discord-ptb-40949.patch --]
[-- Type: text/x-diff, Size: 3433 bytes --]

From 3c1de035d63acb6ee62608eb9f9383cccea2c39e Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Tue, 6 Dec 2022 17:50:51 -0500
Subject: [PATCH] discord-ptb: update to 0.0.38.

Switch away from the janky EULA download setup in favour of a file that links
to the actual current version of the terms, just like the discord package.

Also cleaned up the list of files to copy, made it more maintainable.
---
 srcpkgs/discord-ptb/files/LICENSE |  1 +
 srcpkgs/discord-ptb/template      | 50 ++++++++++++++++++-------------
 2 files changed, 30 insertions(+), 21 deletions(-)
 create mode 100644 srcpkgs/discord-ptb/files/LICENSE

diff --git a/srcpkgs/discord-ptb/files/LICENSE b/srcpkgs/discord-ptb/files/LICENSE
new file mode 100644
index 000000000000..b489d410a1db
--- /dev/null
+++ b/srcpkgs/discord-ptb/files/LICENSE
@@ -0,0 +1 @@
+The current version of this license can be found at: https://discord.com/terms
diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template
index 6b722395e1ee..eb92370a7d8e 100644
--- a/srcpkgs/discord-ptb/template
+++ b/srcpkgs/discord-ptb/template
@@ -1,9 +1,8 @@
 # Template file for 'discord-ptb'
 pkgname=discord-ptb
-version=0.0.35
-revision=3
+version=0.0.38
+revision=1
 archs="x86_64"
-hostmakedepends="w3m"
 depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
  xdg-utils webrtc-audio-processing"
 short_desc="Chat and VoIP application (preview version)"
@@ -11,23 +10,12 @@ maintainer="0x5c <dev@0x5c.io>"
 license="custom:Proprietary"
 homepage="https://discord.com/"
 distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
-checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
+checksum=6cf83b64d410c44a514a9a7c8f9fd72c10c427221df260c6c52eadaa4cf3235b
 nopie=yes
 restricted=yes
 repository=nonfree
 nostrip=yes
-
-post_extract() {
-	local _license_checksum=bbe45a50d92f383311376477dd6ebecefff801b5d47685757107b6f771cac58d
-	$XBPS_FETCH_CMD -o eula https://discord.com/terms
-	w3m -dump -I utf-8 -T text/html eula |
-		sed -n '/Discord is your place/,/^Imagine a place$/p' > EULA
-
-	filesum="$(xbps-digest EULA)"
-	if [ "$filesum" != "$_license_checksum" ]; then
-		msg_error "SHA256 mismatch for EULA:\n$filesum\n"
-	fi
-}
+noshlibprovides=yes
 
 do_install() {
 	local package_location="usr/lib/$pkgname" item
@@ -36,14 +24,34 @@ do_install() {
 	vmkdir usr/share/applications
 	vcopy discord-ptb.desktop /usr/share/applications/
 	vmkdir ${package_location}
-	for item in DiscordPTB chrome_100_percent.pak chrome_200_percent.pak \
-	icudtl.dat libEGL.so libGLESv2.so libffmpeg.so locales resources \
-	resources.pak snapshot_blob.bin swiftshader v8_context_snapshot.bin \
-	discord.png chrome-sandbox libvk_swiftshader.so postinst.sh ; do
+	for item in \
+		DiscordPTB \
+		discord.png \
+		chrome_100_percent.pak \
+		chrome_200_percent.pak \
+		chrome_crashpad_handler \
+		chrome-sandbox \
+		icudtl.dat \
+		libEGL.so \
+		libffmpeg.so \
+		libGLESv2.so \
+		libvk_swiftshader.so \
+		libvulkan.so.1 \
+		locales \
+		postinst.sh \
+		resources \
+		resources.pak \
+		snapshot_blob.bin \
+		swiftshader \
+		v8_context_snapshot.bin \
+		vk_swiftshader_icd.json
+	do
 		vcopy "${item}" "${package_location}"
 	done
 	vmkdir usr/bin
 	ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
+}
 
-	vlicense EULA
+post_install() {
+	vlicense $FILESDIR/LICENSE
 }

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

* Re: [PR PATCH] [Merged]: discord-ptb: update to 0.0.38.
  2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
                   ` (3 preceding siblings ...)
  2022-12-08 22:53 ` [PR PATCH] [Updated] discord-ptb: update to 0.0.37 0x5c
@ 2022-12-08 22:55 ` classabbyamp
  4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2022-12-08 22:55 UTC (permalink / raw)
  To: ml

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

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

discord-ptb: update to 0.0.38.
https://github.com/void-linux/void-packages/pull/40949

Description:
Switch away from the janky EULA download setup in favour of a file that links to the actual current version of the terms, just like the discord package.

<!-- Uncomment relevant sections and delete options which are not applicable -->

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

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

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

end of thread, other threads:[~2022-12-08 22:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 22:55 [PR PATCH] discord-ptb: update to 0.0.36 0x5c
2022-12-06 23:38 ` [PR REVIEW] " classabbyamp
2022-12-06 23:52 ` 0x5c
2022-12-08 22:08 ` [PR PATCH] [Updated] " 0x5c
2022-12-08 22:53 ` [PR PATCH] [Updated] discord-ptb: update to 0.0.37 0x5c
2022-12-08 22:55 ` [PR PATCH] [Merged]: discord-ptb: update to 0.0.38 classabbyamp

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