slack.sh 484 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=slack
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION='Slack from the official site'
7
URL="https://slack.com"
8 9 10 11 12 13

. $(dirname $0)/common.sh

arch=x86_64
pkgtype=rpm

14 15
# https://downloads.slack-edge.com/desktop-releases/linux/x64/4.37.94/slack-4.37.94-0.1.el8.x86_64.rpm
mask="$(epm print constructname $PKGNAME "$VERSION-[.09]*" $arch $pkgtype)"
16
PKGURL="$(eget --list --latest "https://slack.com/downloads/instructions/linux?ddl=1&build=rpm" "$mask")"
17

18
install_pkgurl