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

EAPI=8

DESCRIPTION="Exploit database's papers"
HOMEPAGE="https://www.exploit-db.com/"

if [[ ${PV} != *9999 ]]; then
	inherit vcs-snapshot
	EGIT_COMMIT="${PV:0:4}-${PV:4:2}-${PV:6:2}"
	SRC_URI="https://gitlab.com/exploit-database/exploitdb-papers/-/archive/${EGIT_COMMIT}/exploitdb-${EGIT_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
	KEYWORDS="amd64 x86"
else
	inherit git-r3
	EGIT_REPO_URI="https://gitlab.com/exploit-database/exploitdb-papers.git"
fi

LICENSE="GPL-2"
SLOT="0"

src_install() {
	insinto "/usr/share/${PN}"
	doins -r *
}
