# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities"
HOMEPAGE="https://github.com/projectdiscovery/cvemap"

SRC_URI="amd64? ( fetch+https://github.com/projectdiscovery/cvemap/releases/download/v${PV}/vulnx_${PV}_linux_amd64.zip )
		arm? ( fetch+https://github.com/projectdiscovery/cvemap/releases/download/v${PV}/vulnx_${PV}_linux_arm.zip )
		arm64? ( fetch+https://github.com/projectdiscovery/cvemap/releases/download/v${PV}/vulnx_${PV}_linux_arm64.zip )"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64"

BDEPEND="app-arch/unzip"

S="${WORKDIR}"

QA_PREBUILD="*"

src_install() {
        newbin vulnx ${PN}
}
