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

EAPI=8


DESCRIPTION="Local Linux enumeration and privilege escalation checker"
HOMEPAGE="https://github.com/rebootuser/LinEnum"

if [[ ${PV} != *9999 ]]; then
	EGIT_COMMIT="c47f9b226d3ce2848629f25fe142c1b2986bc427"
	SRC_URI="https://github.com/rebootuser/LinEnum/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/LinEnum-${EGIT_COMMIT}"
	KEYWORDS="amd64 x86"
else
	inherit git-r3
	EGIT_REPO_URI="https://github.com/rebootuser/LinEnum"
fi

LICENSE="MIT"
SLOT="0"

src_install() {
	insinto /usr/share/LinEnum
	doins LinEnum.sh

	dodoc *.md
}
