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

EAPI="7"

inherit readme.gentoo-r1

DESCRIPTION="A docker build environment for firestorm"
HOMEPAGE="https://github.com/lmiphay/firestorm-debian"
SRC_URI="https://github.com/lmiphay/firestorm-debian/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	app-containers/docker
"

DISABLE_AUTOFORMATTING=1
FORCE_PRINT_ELOG=1
DOC_CONTENTS="
  Note: this is the *git* repo version!

  This is an experimental attempt at building firestorm in a debian docker

  Please report issues at the bug tracker: https://github.com/lmiphay/firestorm-debian/issues
"

DOCS=( "README.md" )

src_install() {
	dobin fdc

	insinto /usr/share/${PN}
	doins Dockerfile Makefile .dockerignore

	readme.gentoo_create_doc
}

pkg_postinst() {
	readme.gentoo_print_elog
}