Сохраните нижеприведённый исходник в файл fheroes2-9999.ebuild
Выполните команду:
ln -s fheroes2-9999.ebuild fheroes2-0.9.1.ebuildТеперь можно попробовать собрать и установить версию 0.9.1 таким образом:
ebuild --skip-manifest fheroes2-0.9.1.ebuild clean install qmerge
либо версию из master, таким:
ebuild --skip-manifest fheroes2-9999.ebuild clean install qmerge
Для удаления unmerge вместо clean install qmerge.
Ресурсы можно взять из демо-версии https://archive.org/download/HeroesofMightandMagicIITheSucce...
скопировать в /usr/share/fheroes2
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2EAPI=7
inherit flag-o-matic
DESCRIPTION="Free implementation of Heroes of Might and Magic II game engine."
HOMEPAGE="https://github.com/ihhub/fheroes2"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
KEYWORDS=""
EGIT_REPO_URI="https://github.com/ihhub/${PN}.git"
else
KEYWORDS="amd64 ppc"
SRC_URI="$HOMEPAGE/archive/${PV}.tar.gz"
fi
DEMO_URI="https://archive.org/download/HeroesofMightandMagicIITheSucce...
LICENSE="GPL-2"
SLOT="0"
RDEPEND="
media-libs/sdl2-image
media-libs/sdl2-mixer
media-libs/sdl2-ttf
media-libs/libsdl2
"
DATA="/usr/share/${PN}"
pkg_postinst() {
einfo "Разместите оригинальные ресурсы в соотвествующие директории ${DATA}/."
einfo "Демонстрационную версию можно получить по адресу:"
einfo "${DEMO_URI}"
}
src_configure() {
append-cflags -DCONFIGURE_FHEROES2_DATA=\\\"${DATA}\\\"
}
src_install() {
dobin fheroes2
insinto "${DATA}"
doins doc/README.txt
dodir "${DATA}"/{data,maps}
}