#!/bin/sh PKGNAME=vk SUPPORTEDARCHES="x86_64 x86" VERSION="$2" DESCRIPTION="VK Messenger from the official site" . $(dirname $0)/common.sh arch="$(epm print info -a)" case "$arch" in x86) arch="i686" ;; esac PKGURL=$(epm tool eget --list --latest https://desktop.userapi.com/rpm/master/ "$PKGNAME-$VERSION.$arch.rpm") epm --repack install $PKGURL