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

EAPI=8

inherit git-r3 toolchain-funcs

DESCRIPTION="A tool for chrooting into other systems from a script"
HOMEPAGE="https://gitlab.com/masterwolf/chrooter"
EGIT_REPO_URI="https://gitlab.com/masterwolf/chrooter.git"
EGIT_BRANCH="main"

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

RDEPEND=""

DEPEND="${RDEPEND}"
BDEPEND=""

S="${WORKDIR}/${P}"

src_compile() {
    
    gcc ${CFLAGS} ${LDFLAGS} "chrooter.c" -o chrooter || die
}

src_install() {
    dobin chrooter
    
}