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

EAPI=8

inherit go-module

DESCRIPTION="Automatically exploit low-hanging fruit to pop a root shell"
HOMEPAGE="https://github.com/liamg/traitor"
SRC_URI="https://github.com/liamg/traitor/archive/v${PV}.tar.gz -> ${P}.tar.gz"

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

BDEPEND=">=dev-lang/go-1.13"

src_compile() {
	#ego build
	make build
}

src_install(){
	dobin traitor

	default
}
