diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-28 10:27:13 +0100 |
commit | f4fc10428424904caf2035cffc442195cb088b2c (patch) | |
tree | 72f320d5963e55586cfdeed2b14c72b8191b6327 /games-strategy/julius/julius-1.6.0.ebuild | |
parent | fbd9734cedfe790955100b8e4ab3613457d77b1a (diff) |
gentoo resync : 28.07.2021
Diffstat (limited to 'games-strategy/julius/julius-1.6.0.ebuild')
-rw-r--r-- | games-strategy/julius/julius-1.6.0.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/games-strategy/julius/julius-1.6.0.ebuild b/games-strategy/julius/julius-1.6.0.ebuild new file mode 100644 index 000000000000..31fae63d4296 --- /dev/null +++ b/games-strategy/julius/julius-1.6.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg cmake readme.gentoo-r1 + +DESCRIPTION="Feature-faithful open source re-implementation of Caesar III" +HOMEPAGE="https://github.com/bvschaik/julius" +SRC_URI="https://github.com/bvschaik/julius/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + media-libs/libpng:= + media-libs/libsdl2[joystick,video,sound] + media-libs/sdl2-mixer +" +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.1-rename.patch +) + +src_install() { + cmake_src_install + dodir /usr/libexec + mv "${ED}/usr/bin/julius-game" "${ED}/usr/libexec/julius-game" || + die "Failed to rename executable (required to set default resources location)." + newbin - julius-game <<-EOF + #!/usr/bin/env sh + exec "${EPREFIX}/usr/libexec/julius-game" "\${1:-\${HOME}/.local/share/julius/app}" + EOF + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + readme.gentoo_print_elog +} |