From f5133bca1cc5b90fed66317310219980a6693420 Mon Sep 17 00:00:00 2001 From: 0x5c 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 " 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 }