Commit bbba1ecb authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add vagrant (virtualized development environments)

parent 1e0cd831
#!/bin/sh
PKGNAME=vagrant
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Build and distribute virtualized development environments"
URL="https://vagrantup.com"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- "https://releases.hashicorp.com/vagrant/" 2>/dev/null | grep -o 'vagrant/[0-9][0-9.]*' | head -1 | sed 's|vagrant/||')
[ -n "$VERSION" ] || fatal "Can't get latest version"
fi
case "$(epm print info -p)" in
rpm)
PKGURL="https://hashicorp-releases.yandexcloud.net/vagrant/${VERSION}/vagrant-${VERSION}-1.x86_64.rpm"
;;
*)
PKGURL="https://hashicorp-releases.yandexcloud.net/vagrant/${VERSION}/vagrant_${VERSION}-1_amd64.deb"
;;
esac
install_pkgurl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment