blob: d573fdf296e6be9843db4997351aca7d15b290a8 (
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
|
# 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.17.0
pkgrel=1
pkgdesc="Slack Desktop (Beta) for Linux"
arch=('x86_64')
url="https://slack.com/downloads"
license=('custom')
depends=('alsa-lib' 'gtk3' 'libsecret' 'libxss' 'libxtst' 'nss' 'xdg-utils')
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=('95be9b9023644befa3289bef8c99d4466fed6be9c7fffe52c0acc546d316fdd9ee87079a30e641b9ede413a07762eed59872519b44b41a1afca3663d6fea4eb8')
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"
}
|