discord: proper desktop file position and install less
This allows Discord to be lanched from the desktop/start menu, amd prevents unneeded files from being installed on the users machine.
This commit is contained in:
committed by
Toyam Cox
parent
2168344536
commit
32e97a1ebf
8
srcpkgs/discord/patches/discord.desktop.patch
Normal file
8
srcpkgs/discord/patches/discord.desktop.patch
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
*** discord.desktop
|
||||||
|
--- discord.desktop
|
||||||
|
*************** GenericName=Internet Messenger
|
||||||
|
*** 6 ****
|
||||||
|
! Exec=/usr/share/discord/Discord
|
||||||
|
--- 6 ----
|
||||||
|
! Exec=/usr/lib/discord/Discord
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname="discord"
|
pkgname="discord"
|
||||||
version="0.0.1"
|
version="0.0.1"
|
||||||
revision=2
|
revision=3
|
||||||
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst"
|
depends="alsa-lib dbus-glib gtk+3 GConf libnotify nss libXtst"
|
||||||
wrksrc="Discord"
|
wrksrc="Discord"
|
||||||
only_for_archs="x86_64"
|
only_for_archs="x86_64"
|
||||||
@@ -16,14 +16,19 @@ license="proprietary"
|
|||||||
homepage="https://discordapp.com"
|
homepage="https://discordapp.com"
|
||||||
distfiles="https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
distfiles="https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"
|
||||||
checksum="ba0ff3c57d7ab3a5e47a91bd23a79758085147e88fa0c65529bcf50a778fa382"
|
checksum="ba0ff3c57d7ab3a5e47a91bd23a79758085147e88fa0c65529bcf50a778fa382"
|
||||||
|
_package_location="/usr/lib/$pkgname"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir /usr/share/pixmaps
|
vmkdir /usr/share/pixmaps
|
||||||
vcopy discord.png /usr/share/pixmaps/
|
vcopy discord.png /usr/share/pixmaps/
|
||||||
vmkdir /usr/lib/$pkgname
|
vmkdir /usr/share/applications
|
||||||
vcopy * /usr/lib/$pkgname
|
vcopy discord.desktop /usr/share/applications/
|
||||||
|
vmkdir ${_package_location}
|
||||||
|
for item in locales resources Discord libffmpeg.so libnode.so natives_blob.bin snapshot_blob.bin content_shell.pak icudtl.dat; do
|
||||||
|
vcopy "${item}" "${_package_location}"
|
||||||
|
done
|
||||||
vmkdir /usr/bin
|
vmkdir /usr/bin
|
||||||
ln -sfr $DESTDIR/usr/lib/$pkgname/Discord $DESTDIR/usr/bin/discord
|
ln -sfr $DESTDIR${_package_location}/Discord $DESTDIR/usr/bin/Discord
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense $FILESDIR/LICENSE
|
vlicense $FILESDIR/LICENSE
|
||||||
|
|||||||
Reference in New Issue
Block a user