discord-ptb: unbreak and update to 0.0.26
- Fix the dependencies (based on the discord package) - Fix the EULA check (the terms webpage text was cut based on Discord's previous tagline) - Fix a typo in the pixmap installation - Update the EULA checksum - Change the description based on the discord package
This commit is contained in:
parent
0e2e1de094
commit
d9ee89a777
1 changed files with 9 additions and 8 deletions
|
@ -1,18 +1,19 @@
|
||||||
# Template file for 'discord-ptb'
|
# Template file for 'discord-ptb'
|
||||||
pkgname=discord-ptb
|
pkgname=discord-ptb
|
||||||
version=0.0.25
|
version=0.0.26
|
||||||
revision=1
|
revision=1
|
||||||
archs="x86_64"
|
archs="x86_64"
|
||||||
wrksrc="DiscordPTB"
|
wrksrc="DiscordPTB"
|
||||||
hostmakedepends="w3m"
|
hostmakedepends="w3m"
|
||||||
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst libcxx libatomic"
|
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
|
||||||
short_desc="Proprietary freeware VoIP application"
|
xdg-utils webrtc-audio-processing"
|
||||||
|
short_desc="Chat and VoIP application (preview version)"
|
||||||
maintainer="Abel Graham <abel@abelgraham.com>"
|
maintainer="Abel Graham <abel@abelgraham.com>"
|
||||||
license="custom:Proprietary"
|
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=41ac91f87651361816fa49e07c1f25334f9907df03e8b2e76d8d45e6757d5e20
|
checksum=04b33c73a4d55c476c8332bd86e50add6d984c965f0d4b5b759ccb0ebd3992e6
|
||||||
_license_checksum=9abbd207c86f76a59c0017c131dc7a30089c40b4dacb54a0f339272468344e1e
|
_license_checksum=03580ea1297c38f31c4437555f2dbf9dae25a91c9e61391d7141cf8cc036aeff
|
||||||
nopie=yes
|
nopie=yes
|
||||||
restricted=yes
|
restricted=yes
|
||||||
repository=nonfree
|
repository=nonfree
|
||||||
|
@ -20,7 +21,7 @@ repository=nonfree
|
||||||
post_extract() {
|
post_extract() {
|
||||||
$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
|
$XBPS_FETCH_CMD -o eula https://discord.com/terms; cat eula |
|
||||||
w3m -dump -I utf-8 -T text/html |
|
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)"
|
filesum="$(xbps-digest EULA)"
|
||||||
if [ "$filesum" != "$_license_checksum" ]; then
|
if [ "$filesum" != "$_license_checksum" ]; then
|
||||||
|
@ -31,14 +32,14 @@ post_extract() {
|
||||||
do_install() {
|
do_install() {
|
||||||
local package_location="usr/lib/$pkgname" item
|
local package_location="usr/lib/$pkgname" item
|
||||||
vmkdir usr/share/pixmaps
|
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
|
vmkdir usr/share/applications
|
||||||
vcopy discord-ptb.desktop /usr/share/applications/
|
vcopy discord-ptb.desktop /usr/share/applications/
|
||||||
vmkdir ${package_location}
|
vmkdir ${package_location}
|
||||||
for item in DiscordPTB chrome_100_percent.pak chrome_200_percent.pak \
|
for item in DiscordPTB chrome_100_percent.pak chrome_200_percent.pak \
|
||||||
icudtl.dat libEGL.so libGLESv2.so libffmpeg.so locales resources \
|
icudtl.dat libEGL.so libGLESv2.so libffmpeg.so locales resources \
|
||||||
resources.pak snapshot_blob.bin swiftshader v8_context_snapshot.bin \
|
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}"
|
vcopy "${item}" "${package_location}"
|
||||||
done
|
done
|
||||||
vmkdir usr/bin
|
vmkdir usr/bin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue