Mindjárt próbálom, de kérlek csinálj egy valami release-t, azzal kész lenne az ebuild.
Szerk:
félreértettem! Csak egy release kell és akkor ez a végleges ebuild:
sys-boot/simpleboot-9999.ebuild
# Copyright 2023 .....
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Dependency-free, suckless bootable disk image creator"
HOMEPAGE="https://gitlab.com/bztsrc/simpleboot"
LICENSE="MIT"
SLOT="0"
IUSE="rebuild"
# If PV starts with 9999, use git-r3 for version control
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI='https://gitlab.com/bztsrc/simpleboot.git'
else
SRC_URI="https://gitlab.com/bztsrc/simpleboot/-/archive/${PV}/simpleboot-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
BDEPEND="
rebuild? (
dev-lang/fasm
sys-devel/llvm
sys-devel/lld
)
"
src_prepare() {
default
# Nothing specific to prepare
}
src_compile() {
if use rebuild; then
emake -C src distclean || die "Failed to execute 'make -C src distclean'"
fi
emake -C src -j1 || die "Failed to build simpleboot"
}
src_install() {
dobin src/simpleboot || die "Failed to install simpleboot"
# Create the /etc/simpleboot directory if it does not exist
dodir /etc/simpleboot
# Copy the example/simpleboot.cfg as simpleboot.cfg to /etc/simpleboot
insinto /etc/simpleboot
newins example/simpleboot.cfg simpleboot.cfg.example || die "Failed to copy simpleboot.cfg"
}