void-packages/srcpkgs/slack-desktop/template
2021-02-19 12:18:38 -03:00

30 lines
936 B
Bash

# Template file for 'slack-desktop'
pkgname=slack-desktop
version=4.13.0
revision=1
archs="x86_64"
hostmakedepends="tar xz"
depends="xdg-utils"
short_desc="Messaging app for teams"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="custom:Proprietary"
homepage="https://slack.com/"
distfiles="https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/${pkgname}-${version}-amd64.deb"
checksum=b8a63e1a91e4320b7e46aed692a5579fe2334b0f6963f9dceedccd05a7f51bc3
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
vcopy usr/lib/slack usr/lib
ln -s ../lib/slack/slack ${DESTDIR}/usr/bin/slack
}