blob: 862630ea2f1bfece299315ea809447f86253156e (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: Simon Gomizelj <simongmzlj(at)gmail(dot)com>
# Contributor: Kyle Manna <kyle(at)kylemanna(dot)com>
pkgname=slack-desktop
pkgver=4.19.2
pkgrel=3
pkgdesc="Slack Desktop (Beta) for Linux"
arch=('x86_64')
url="https://slack.com/downloads"
license=('custom')
_pinned_dependencies=(
'at-spi2-atk=2.38.0'
'at-spi2-core=2.40.3'
'cairo=1.17.4'
'gcc-libs=11.1.0'
'glibc>=2.33'
'libasound.so=2'
'libatk-1.0.so=0'
'libcups=1:2.3.3op2'
'libdbus-1.so=3'
'libdrm=2.4.107'
'libexpat.so=1'
'libgdk-3.so=0'
'libgdk_pixbuf-2.0.so=0'
'libgio-2.0.so=0'
'libglib-2.0.so=0'
'libgobject-2.0.so=0'
'libgtk-3.so=0'
'libpango-1.0.so=0'
'libx11=1.7.2'
'libxcb=1.14'
'libxcomposite=0.4.5'
'libxdamage=1.1.5'
'libxext=1.3.4'
'libxfixes=6.0.0'
'libxkbcommon.so=0'
'libxrandr=1.5.2'
'libxshmfence=1.3'
'mesa=21.2.1'
'nspr=4.32'
'nss=3.70'
)
depends=('alsa-lib' 'gtk3' 'libsecret' 'libxss' 'libxtst' 'nss' 'xdg-utils' "${_pinned_dependencies[@]}")
optdepends=('libappindicator-gtk3: Systray indicator support'
'org.freedesktop.secrets: Keyring password store support')
source_x86_64=("https://downloads.slack-edge.com/linux_releases/${pkgname}-${pkgver}-amd64.deb")
source=("${pkgname}.patch")
sha512sums=('fd7e9681887639a2a9117c6bf537c25918f02985588366aaf3cd5b2e07b842d773aaf27354b7c149df1cc003e645b77bd36ec753992d50e02f5eb87e59009264')
sha512sums_x86_64=('414e0738ebee8f328447a4926cfd788d4123059c37c33b927b70bbb136c4aaefb01f886dbcc21b25b2c0d76c12547af4677ef099fd77d54f557ec46b1422f35c')
package() {
cd "${pkgdir}"
bsdtar -xJf "${srcdir}/data.tar.xz"
# Fix hardcoded icon path in .desktop file
patch -p1 -i "${srcdir}/${pkgname}.patch"
# Remove all unnecessary stuff
rm -rf --one-file-system \
"etc" \
"usr/lib/slack/src" \
"usr/share/lintian" \
"usr/share/doc"
# Move license
install -dm755 "usr/share/licenses/${pkgname}"
mv "usr/lib/slack/LICENSE" "usr/share/licenses/${pkgname}"
ln -s "/usr/share/licenses/${pkgname}/LICENSE" "usr/lib/slack/LICENSE"
}
|