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

EAPI=8

DESCRIPTION="Generate plainmasterkeys (rainbowtables) and hashes for hashcat/JTR"
HOMEPAGE="https://github.com/ZerBea/hcxkeys"
SRC_URI="https://github.com/ZerBea/hcxkeys/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND="dev-libs/openssl:=
	virtual/opencl"
DEPEND="${RDEPEND}
	dev-util/opencl-headers"

src_compile(){
	emake DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" build
}

src_install(){
	emake DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" install
}