# Template file for 'slack-desktop'
pkgname=slack-desktop
version=2.8.0
revision=1
only_for_archs="x86_64"
short_desc="A messaging app for teams"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="https://slack.com/"
repository="nonfree"
restricted=yes
nopie=yes
checksum=15626e80dfef62d9f26d1c46987f4a6b333d722d49513797913e238741c4700a
distfiles="https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-${version}-amd64.deb"

do_extract() {
	ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/slack-desktop-${version}-amd64.deb
	cd ${wrksrc}
	tar xfJ data.tar.xz
}

do_install() {
	vlicense usr/share/doc/slack-desktop/copyright
	rm -rf usr/share/doc
	rm -rf etc
	rm -rf usr/share/lintian
	vcopy usr/ /
}
