blob: 40f7be27074abb483f39b18cf3096231ff0e6295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Cayde Dixon <me@cazzar.net>
# Contributor: Anthony Anderson <aantony4122@gmail.com>
pkgname=discord-ptb
pkgver=0.0.1
pkgrel=3
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=('57dbf8949f99692919a5244a39998cc4'
'86acf3328debd24b95cdd037a276e059'
'f49fa4791d8feafeef470040fb16746d')
md5sums_x86_64=('97c0b016d1aace174493cb18e949abd7')
|