summaryrefslogtreecommitdiff
path: root/discord/Pkgfile
blob: a5f6faae799d72148a32e9603cf25beef49cc78f (plain)
    1 # Description: All-in-one voice and text chat for gamers
    2 # URL: https://discordapp.com/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: alsa-lib avahi cups graphite2 gtk3 nss util-linux xorg-libxcomposite xorg-libxcursor xorg-libxinerama xorg-libxscrnsaver
    5 
    6 name=discord
    7 version=0.0.23
    8 release=1
    9 source=(https://dl.discordapp.net/apps/linux/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12     install -d $PKG/opt/$name
   13     cp -a Discord/. $PKG/opt/$name
   14     chmod 755 $PKG/opt/$name/Discord
   15 
   16     install -d $PKG/usr/share/applications
   17     install $PKG/opt/$name/$name.desktop $PKG/usr/share/applications
   18     sed -i s%/usr/share%/opt% $PKG/usr/share/applications/$name.desktop
   19     mkdir -p $PKG/usr/bin
   20     ln -s /opt/$name/Discord $PKG/usr/bin/$name
   21 
   22     install -d $PKG/usr/share/pixmaps
   23     ln -s /opt/$name/discord.png $PKG/usr/share/pixmaps/$name.png
   24     install -d $PKG/usr/lib
   25     ln -s /opt/discord/libffmpeg.so $PKG/usr/lib/libffmpeg.so
   26 }

Generated by cgit