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

EAPI=7

inherit eutils git-r3

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

EGIT_REPO_URI="https://github.com/offensive-security/exploitdb-papers"
if [[ ${PV} != *9999 ]]; then
	EGIT_COMMIT="${PV:0:4}-${PV:4:2}-${PV:6:2}"
	KEYWORDS="amd64 x86"
fi

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

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