mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-13 05:55:12 +02:00
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. Also cleaned up the list of files to copy, made it more maintainable.
57 lines
1.4 KiB
Bash
57 lines
1.4 KiB
Bash
# Template file for 'discord-ptb'
|
|
pkgname=discord-ptb
|
|
version=0.0.38
|
|
revision=1
|
|
archs="x86_64"
|
|
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="0x5c <dev@0x5c.io>"
|
|
license="custom:Proprietary"
|
|
homepage="https://discord.com/"
|
|
distfiles="https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"
|
|
checksum=6cf83b64d410c44a514a9a7c8f9fd72c10c427221df260c6c52eadaa4cf3235b
|
|
nopie=yes
|
|
restricted=yes
|
|
repository=nonfree
|
|
nostrip=yes
|
|
noshlibprovides=yes
|
|
|
|
do_install() {
|
|
local package_location="usr/lib/$pkgname" item
|
|
vmkdir usr/share/pixmaps
|
|
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 \
|
|
discord.png \
|
|
chrome_100_percent.pak \
|
|
chrome_200_percent.pak \
|
|
chrome_crashpad_handler \
|
|
chrome-sandbox \
|
|
icudtl.dat \
|
|
libEGL.so \
|
|
libffmpeg.so \
|
|
libGLESv2.so \
|
|
libvk_swiftshader.so \
|
|
libvulkan.so.1 \
|
|
locales \
|
|
postinst.sh \
|
|
resources \
|
|
resources.pak \
|
|
snapshot_blob.bin \
|
|
swiftshader \
|
|
v8_context_snapshot.bin \
|
|
vk_swiftshader_icd.json
|
|
do
|
|
vcopy "${item}" "${package_location}"
|
|
done
|
|
vmkdir usr/bin
|
|
ln -sfr $DESTDIR/${package_location}/DiscordPTB $DESTDIR/usr/bin/discord-ptb
|
|
}
|
|
|
|
post_install() {
|
|
vlicense $FILESDIR/LICENSE
|
|
}
|