#!/bin/sh PKGNAME=sferum SUPPORTEDARCHES="x86_64 x86" VERSION="$2" DESCRIPTION="Sferum for Linux from the official site" . $(dirname $0)/common.sh warn_version_is_not_supported arch=$(epm print info --distro-arch) case $arch in x86_64|amd64) arch=$arch ;; i686|i386) arch=$arch ;; i586) arch=i686 ;; *) fatal "Unsupported arch $arch for $(epm print info -d)" esac #https://st.mycdn.me/static/sferum/latest/sferum-i386.deb #https://st.mycdn.me/static/sferum/latest/sferum-amd64.deb #https://st.mycdn.me/static/sferum/latest/sferum-i686.rpm #https://st.mycdn.me/static/sferum/latest/sferum-x86_64.rpm # can't use constructname due '-' before arch #epm install "https://st.mycdn.me/static/sferum/latest/$(epm print constructname $PKGNAME '' $arch '' '-')" PKGURL="https://st.mycdn.me/static/sferum/latest/$PKGNAME-$arch.$(epm print info -p)" install_pkgurl