From f9a2350b28fa2d1375fea675f2d88bbf7e92ec51 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Thu, 23 Sep 2021 00:42:03 -0400 Subject: [PATCH] discord-ptb: update to 0.0.26. and unbroke it - Fixed the dependencies (based on the discord package) - Fixed the EULA check (the terms webpage text was cut based on Discord's previous tagline) - Fixed a typo in the pixmap installation - Updated the EULA checksum - Changed the description based on the discord package --- srcpkgs/discord-ptb/template | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/srcpkgs/discord-ptb/template b/srcpkgs/discord-ptb/template index b1467a7dc267..0566ab33dc62 100644 --- a/srcpkgs/discord-ptb/template +++ b/srcpkgs/discord-ptb/template @@ -1,18 +1,19 @@ # Template file for 'discord-ptb' pkgname=discord-ptb -version=0.0.25 +version=0.0.26 revision=1 archs="x86_64" wrksrc="DiscordPTB" hostmakedepends="w3m" -depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic" -short_desc="Proprietary freeware VoIP application" +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)" maintainer="Abel Graham " license="custom:Proprietary" homepage="https://discord.com/" distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz" -checksum=41ac91f87651361816fa49e07c1f25334f9907df03e8b2e76d8d45e6757d5e20 -_license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e1e +checksum=04b33c73a4d55c476c8332bd86e50add6d984c965f0d4b5b759ccb0ebd3992e6 +_license_checksum=03580ea1297c38f31c4437555f2dbf9dae25a91c9e61391d7141cf8cc036aeff nopie=yes restricted=yes repository=nonfree @@ -20,7 +21,7 @@ repository=nonfree post_extract() { $XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula | w3m -dump -I utf-8 -T text/html | - sed -n '/Discord Terms of Service/,/^Your place to talk$/p' > EULA + sed -n '/Discord Terms of Service/,/^Imagine a place$/p' > EULA filesum="$(xbps-digest EULA)" if [ "$filesum" != "$_license_checksum" ]; then @@ -31,14 +32,14 @@ post_extract() { do_install() { local package_location="usr/lib/$pkgname" item vmkdir usr/share/pixmaps - vinstall discord.png 644 /usr/share/pixmap/ discord-ptb.png + vinstall discord.png 644 /usr/share/pixmaps/ discord-ptb.png 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; do + discord.png chrome-sandbox libvk_swiftshader.so postinst.sh ; do vcopy "${item}" "${package_location}" done vmkdir usr/bin