void-packages/srcpkgs/slack-desktop/template

26 lines
928 B
Bash

# Template file for 'slack-desktop'
pkgname=slack-desktop
version=4.37.94
revision=1
archs="x86_64"
depends="xdg-utils"
short_desc="Messaging app for teams"
maintainer="Rodrigo Oliveira <mdkcore@qtrnn.io>"
license="custom:Proprietary"
homepage="https://slack.com/"
distfiles="https://downloads.slack-edge.com/releases/linux/${version}/prod/x64/${pkgname}-${version}-amd64.deb"
checksum=1d7c6fb7cf2aa31c1ea19da98e9610d95bd084cf5ee57e7756b9d1630ebd3ab8
restricted=yes
repository="nonfree"
nopie=yes
do_install() {
vlicense usr/share/doc/slack-desktop/OPEN_SOURCE_LICENSE_ATTRIBUTIONS
vinstall usr/share/applications/slack.desktop 644 usr/share/applications
vinstall usr/share/pixmaps/slack.png 644 usr/share/pixmaps
mkdir ${DESTDIR}/usr/bin
vsed -i -e 's/,"WebRTCPipeWireCapturer"/,"LebRTCPipeWireCapturer"/' usr/lib/slack/resources/app.asar
vcopy usr/lib/slack usr/lib
ln -s ../lib/slack/slack ${DESTDIR}/usr/bin/slack
}