summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-18 09:46:53 +0200
committerErich Eckner <git@eckner.net>2021-05-18 09:46:53 +0200
commit38da4c676b9f8bc61a35bcfdffb70b34b02a7d0a (patch)
tree3ba76c3c3a86ee66a6048dc62552bbb132bdcb93
parentd2aa832e70e7b1b97d0e2d0cac9c19579f9b0bab (diff)
downloadarchlinuxewe-38da4c676b9f8bc61a35bcfdffb70b34b02a7d0a.tar.xz
slack-desktop neu
-rw-r--r--slack-desktop/.gitignore5
-rw-r--r--slack-desktop/PKGBUILD39
-rw-r--r--slack-desktop/slack-desktop.patch12
3 files changed, 56 insertions, 0 deletions
diff --git a/slack-desktop/.gitignore b/slack-desktop/.gitignore
new file mode 100644
index 000000000..fd5078bd0
--- /dev/null
+++ b/slack-desktop/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!PKGBUILD
+!slack-desktop.patch
+!.SRCINFO
diff --git a/slack-desktop/PKGBUILD b/slack-desktop/PKGBUILD
new file mode 100644
index 000000000..5caf5a90c
--- /dev/null
+++ b/slack-desktop/PKGBUILD
@@ -0,0 +1,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.15.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")
+sha256sums=('d351d8ff3eee0006d1c66e3efec60a78ae8cc10fd8c3042e8d899125a1c4bf47')
+sha256sums_x86_64=('31aa7cdcff637c642cfeb2786d4cbcc076f226048080c91d76c38e48283ef7f7')
+
+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"
+}
diff --git a/slack-desktop/slack-desktop.patch b/slack-desktop/slack-desktop.patch
new file mode 100644
index 000000000..3b18fad30
--- /dev/null
+++ b/slack-desktop/slack-desktop.patch
@@ -0,0 +1,12 @@
+--- a/usr/share/applications/slack.desktop 2019-07-18 08:39:46.981221305 +0200
++++ b/usr/share/applications/slack.desktop 2019-07-18 08:40:45.194552861 +0200
+@@ -4,7 +4,7 @@
+ Comment=Slack Desktop
+ GenericName=Slack Client for Linux
+-Exec=/usr/bin/slack %U
++Exec=/usr/bin/slack -s %U
+-Icon=/usr/share/pixmaps/slack.png
++Icon=slack
+ Type=Application
+ StartupNotify=true
+ Categories=GNOME;GTK;Network;InstantMessaging;