# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="${PN/-bin/}"
BASE_URI="https://bin.equinox.io/c/4VmDzA7iaHb/${MY_PN}-stable-linux-_arch_.zip"

DESCRIPTION="Secure introspected tunnels to localhost"
HOMEPAGE="https://ngrok.com/"
SRC_URI="amd64? ( ${BASE_URI/_arch_/amd64} )
	arm? ( ${BASE_URI/_arch_/arm} )
	arm64? ( ${BASE_URI/_arch_/arm64} )
	x86? ( ${BASE_URI/_arch_/386} )"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"

BDEPEND="app-arch/unzip"

RESTRICT="mirror"

S="${WORKDIR}"

src_install() {
	dobin ngrok
}