Browse Source

Discord-PTB 0.0.1

master
Cayde Dixon 4 years ago
commit
f611a341fd
7 changed files with 106 additions and 0 deletions
  1. +30
    -0
      .SRCINFO
  2. +4
    -0
      .gitignore
  3. +10
    -0
      DiscordPTB.desktop
  4. +7
    -0
      DiscordPTB.install
  5. +2
    -0
      DiscordPTB.sh
  6. +1
    -0
      LICENSE
  7. +52
    -0
      PKGBUILD

+ 30
- 0
.SRCINFO View File

@ -0,0 +1,30 @@
pkgbase = discord-ptb
pkgdesc = Discord PTB linux release
pkgver = 0.0.1
pkgrel = 1
url = https://discordapp.com/
install = DiscordPTB.install
arch = x86_64
license = custom
depends = gtk2
depends = gconf
depends = libnotify
depends = libxss
depends = glibc
depends = alsa-lib
depends = nspr
depends = nss
optdepends = freetype2-infinality: If you have black screens with emojis install this.
optdepends = libpulse: For pulseaudio support
provides = discord-ptb
source = DiscordPTB.desktop
source = LICENSE
source = DiscordPTB.sh
md5sums = 2ff4b71f582b9d62eadbb487d4190d15
md5sums = 86acf3328debd24b95cdd037a276e059
md5sums = f49fa4791d8feafeef470040fb16746d
source_x86_64 = https://dl-ptb.discordapp.net/apps/linux/0.0.1/discord-ptb-0.0.1.tar.gz
md5sums_x86_64 = 97c0b016d1aace174493cb18e949abd7
pkgname = discord-ptb

+ 4
- 0
.gitignore View File

@ -0,0 +1,4 @@
src/
pkg/
*.gz
*.xz

+ 10
- 0
DiscordPTB.desktop View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Discord Canary
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
GenericName=Internet Messenger
Exec=/usr/bin/discord-canary
Icon=/usr/share/pixmaps/discord-canary.png
Type=Application
StartupNotify=true
Categories=Network;InstantMessaging;
StartupWMClass=discord

+ 7
- 0
DiscordPTB.install View File

@ -0,0 +1,7 @@
post_upgrade() {
echo ">>> The run command changed from DiscordCanary to discord-canary"
echo ">>> You may need to delete discord's cache directory ~/.cache/discord"
echo ">>> try this if discord is stuck on the updating screen or if nothing displays but a gray box"
echo ">>> if this doesn't work ask for help in #linux in the Discord Developers server https://discord.gg/UT7AMAP"
echo ">>> You may also want to check out the linux server for help as well https://discord.gg/e7GX27C"
}

+ 2
- 0
DiscordPTB.sh View File

@ -0,0 +1,2 @@
#!/bin/bash
PULSE_LATENCY_MSEC=30 /opt/discord-ptb/DiscordPTB

+ 1
- 0
LICENSE View File

@ -0,0 +1 @@
Copyright (c) 2016 Hammer & Chisel

+ 52
- 0
PKGBUILD View File

@ -0,0 +1,52 @@
# Maintainer: Cayde Dixon <me@cazzar.net>
# Contributor: Anthony Anderson <aantony4122@gmail.com>
pkgname=discord-ptb
pkgver=0.0.1
pkgrel=1
pkgdesc='Discord PTB linux release'
arch=('x86_64')
url='https://discordapp.com/'
provides=('discord-ptb')
license=('custom')
depends=('gtk2' 'gconf' 'libnotify' 'libxss' 'glibc' 'alsa-lib' 'nspr' 'nss')
optdepends=('freetype2-infinality: If you have black screens with emojis install this.' 'libpulse: For pulseaudio support' )
install="DiscordPTB.install"
source=(DiscordPTB.desktop LICENSE DiscordPTB.sh)
source_x86_64=("https://dl-ptb.discordapp.net/apps/linux/${pkgver}/discord-ptb-${pkgver}.tar.gz")
#This is always latest build, right now I do not know of a version param.
package() {
# Install the main files.
install -d "${pkgdir}/opt/${pkgname}"
cp -a "${srcdir}/DiscordPTB/." "${pkgdir}/opt/${pkgname}"
# Exec bit
chmod 755 "${pkgdir}/opt/${pkgname}/DiscordPTB"
# Desktop Entry
install -d "${pkgdir}/usr/share/applications"
install "${srcdir}/DiscordPTB.desktop" "${pkgdir}/usr/share/applications"
# Main binary
install -d "${pkgdir}/usr/bin"
#ln -s "/opt/${pkgname}/DiscordCanary" "${pkgdir}/usr/bin/DiscordCanary"
#installing from .sh due to how the tar extracts.
install "${srcdir}/DiscordPTB.sh" "${pkgdir}/usr/bin/discord-ptb"
# Create symbolic link to the icon
install -d "${pkgdir}/usr/share/pixmaps"
ln -s "/opt/${pkgname}/discord.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
# License
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
md5sums=('2ff4b71f582b9d62eadbb487d4190d15'
'86acf3328debd24b95cdd037a276e059'
'f49fa4791d8feafeef470040fb16746d')
md5sums_x86_64=('97c0b016d1aace174493cb18e949abd7')

Loading…
Cancel
Save