1
0
mirror of synced 2024-12-23 05:10:24 +01:00
Horea Christian 493ca825e3
games-strategy/augustus: live ebuild with proper system-wide dirs
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Horea Christian <chr@chymera.eu>
2021-03-16 11:11:32 -04:00

52 lines
1.5 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake git-r3 xdg
DESCRIPTION="Feature-enhanced open source re-implementation of Caesar III"
HOMEPAGE="https://github.com/Keriew/augustus"
EGIT_REPO_URI="https://github.com/Keriew/augustus.git"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="uncapped"
DEPEND="
media-libs/libpng:0=
media-libs/libsdl2[joystick,video,sound]
media-libs/sdl2-mixer
"
RDEPEND="${DEPEND}"
src_prepare() {
use uncapped && eapply "${FILESDIR}"/${PN}-2.0.1-uncapped.patch
cmake_src_prepare
xdg_src_prepare
}
src_install() {
insinto /etc/profile.d
doins "${FILESDIR}"/90augustus.sh
cmake_src_install
mv "${ED}"/usr/bin/augustus "${ED}"/usr/bin/augustus-game ||
die "Failed to rename executable (required as per conflict with sci-biology/augustus)"
}
pkg_postinst() {
xdg_pkg_postinst
ewarn "Augustus requires you to download the original Caesar 3 resources."
ewarn
ewarn "You need to obtain these files from a vendor of the proprietary software."
ewarn "You will then need to copy the 'app' directory into '~/.cache/julius/'."
ewarn "One way to obtain this directory is to download the GOG Cesar 3 edition."
ewarn "You can then produce this directory by running:"
ewarn " innoextract -m setup_caesar3_2.0.0.9.exe"
ewarn
ewarn "Lastly, run 'source /etc/profile' to refresh your environment and be able"
ewarn "to start the game directly by running 'augustus-game' in the command line."
}