discord-ptb: change license

This commit is contained in:
Đoàn Trần Công Danh 2022-12-05 23:12:39 +07:00
parent 6b0361d82e
commit 04ebda9afd
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'discord-ptb'
pkgname=discord-ptb
version=0.0.35
revision=2
revision=3
archs="x86_64"
hostmakedepends="w3m"
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
@ -12,16 +12,16 @@ license="custom:Proprietary"
homepage="https://discord.com/"
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
_license_checksum=45e63af835972e94b311bc44d515ca11a919d6a8f127ec801267b0a8fba10847
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.s Terms of Service/,/^Imagine a place$/p' > EULA
sed -n '/Discord is your place/,/^Imagine a place$/p' > EULA
filesum="$(xbps-digest EULA)"
if [ "$filesum" != "$_license_checksum" ]; then