void-packages/srcpkgs/slack-desktop/template
2016-08-29 07:52:25 +02:00

36 lines
923 B
Bash

# Template file for 'slack-desktop'
pkgname=slack-desktop
version=2.1.1
revision=1
only_for_archs="i686 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
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
checksum=03ee895a8ce6e4eda3105e2eee9f1353a0798a9dcbbc3b1b384dad599e2ed533
else
_debarch=i386
checksum=f023118d978cd0f27d36f9c816edcddb9e192b45a8c1f51079378525bdcf8e43
fi
distfiles="https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-${version}-${_debarch}.deb"
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/slack-desktop-${version}-${_debarch}.deb
cd ${wrksrc}
tar xfJ data.tar.xz
}
do_install() {
vlicense usr/share/doc/slack/copyright
rm -rf usr/share/doc
rm -rf etc
rm -rf usr/share/lintian
vcopy usr/ /
}