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

PKGNAME=slack
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6 7 8 9 10 11 12
DESCRIPTION='Slack from the official site'

. $(dirname $0)/common.sh

arch=x86_64
pkgtype=rpm

13
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)"
14 15 16 17
PKG="$(epm tool eget --list --latest https://slack.com/downloads/instructions/fedora $PKGMASK)" || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"

epm install --repack "$PKG"