void-packages/srcpkgs/slack-desktop/template
Peter Bui 6fbb65f031 slack-desktop: update to 3.4.0.
Closes #11873.

Signed-off-by: Enno Boland <gottox@voidlinux.org>
2019-05-23 10:42:38 +02:00

28 lines
889 B
Bash

# Template file for 'slack-desktop'
pkgname=slack-desktop
version=3.4.0
revision=1
archs="x86_64"
short_desc="Messaging app for teams"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="https://slack.com/"
distfiles="https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/${pkgname}-${version}-amd64.deb"
checksum=857b38862aa732a27c1cee5fcfdce490d624f22a5d8b4fd389d7ad06de1ba551
restricted=yes
repository="nonfree"
nopie=yes
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}-amd64.deb
tar xf data.tar.xz
}
do_install() {
vlicense usr/share/doc/slack-desktop/copyright
vinstall usr/share/applications/slack.desktop 644 usr/share/applications
vinstall usr/share/pixmaps/slack.png 644 usr/share/pixmaps
mkdir ${DESTDIR}/usr/{bin,lib}
vcopy usr/lib/slack usr/lib
ln -s ../lib/slack/slack ${DESTDIR}/usr/bin/slack
}