mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
discord-ptb: change license
This commit is contained in:
parent
6b0361d82e
commit
04ebda9afd
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'discord-ptb'
|
# Template file for 'discord-ptb'
|
||||||
pkgname=discord-ptb
|
pkgname=discord-ptb
|
||||||
version=0.0.35
|
version=0.0.35
|
||||||
revision=2
|
revision=3
|
||||||
archs="x86_64"
|
archs="x86_64"
|
||||||
hostmakedepends="w3m"
|
hostmakedepends="w3m"
|
||||||
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
|
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
|
||||||
|
@ -12,16 +12,16 @@ license="custom:Proprietary"
|
||||||
homepage="https://discord.com/"
|
homepage="https://discord.com/"
|
||||||
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
|
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
|
||||||
checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
|
checksum=6e7a79c1f711db5b3b2cc3f11608f91b752cc4f5a5163e2de826dea2c8ae7c76
|
||||||
_license_checksum=45e63af835972e94b311bc44d515ca11a919d6a8f127ec801267b0a8fba10847
|
|
||||||
nopie=yes
|
nopie=yes
|
||||||
restricted=yes
|
restricted=yes
|
||||||
repository=nonfree
|
repository=nonfree
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
local _license_checksum=bbe45a50d92f383311376477dd6ebecefff801b5d47685757107b6f771cac58d
|
||||||
$XBPS_FETCH_CMD -o eula https://discord.com/terms
|
$XBPS_FETCH_CMD -o eula https://discord.com/terms
|
||||||
w3m -dump -I utf-8 -T text/html eula |
|
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)"
|
filesum="$(xbps-digest EULA)"
|
||||||
if [ "$filesum" != "$_license_checksum" ]; then
|
if [ "$filesum" != "$_license_checksum" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue