31 lines
941 B
Bash
31 lines
941 B
Bash
# Template file for 'slack-desktop'
|
|
pkgname=slack-desktop
|
|
version=4.22.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://downloads.slack-edge.com/releases/linux/${version}/prod/x64/${pkgname}-${version}-amd64.deb"
|
|
checksum=d12026d979673aa5cdc14f6a484776a72bedf7fec5acb2ddeb7414733b7d044d
|
|
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
|
|
}
|