diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-06-01 08:01:26 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-06-01 19:19:15 -0400 |
commit | 482c2764535184fffb3750c35c1f56b984d0d9f1 (patch) | |
tree | 24d3b70e2d99d22aedcee4311992cf30f1d2b6fd /games-arcade/rockdodger/rockdodger-1.1.4.ebuild | |
parent | games-misc/nyancat: add 1.5.2, EAPI-7 (diff) | |
download | gentoo-482c2764535184fffb3750c35c1f56b984d0d9f1.tar.gz gentoo-482c2764535184fffb3750c35c1f56b984d0d9f1.tar.bz2 gentoo-482c2764535184fffb3750c35c1f56b984d0d9f1.zip |
games-arcade/rockdodger: add 1.1.4
- make game usable (broken since games.eclass--, wrong assets path)
- make executable setgid gamestat (...was setgid root)
- removed patches, obsolete/upstreamed
- prefix support
- install package's .desktop, bigger icon, and man page
- added missing [joystick] (bug #737688), and others to handle assets
- seds removed (bug #711110), includes audio sed given can't
reproduce and upstream still left it at 512 in 2020
Closes: https://bugs.gentoo.org/680584
Closes: https://bugs.gentoo.org/711110
Closes: https://bugs.gentoo.org/737688
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade/rockdodger/rockdodger-1.1.4.ebuild')
-rw-r--r-- | games-arcade/rockdodger/rockdodger-1.1.4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/games-arcade/rockdodger/rockdodger-1.1.4.ebuild b/games-arcade/rockdodger/rockdodger-1.1.4.ebuild new file mode 100644 index 000000000000..6f4a73b078fd --- /dev/null +++ b/games-arcade/rockdodger/rockdodger-1.1.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop toolchain-funcs + +DESCRIPTION="Dodge the rocks for as long as possible until you die" +HOMEPAGE="https://bitbucket.org/rpkrawczyk/rockdodger" +SRC_URI="https://bitbucket.org/rpkrawczyk/rockdodger/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + acct-group/gamestat + media-libs/libsdl[joystick,sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[mod,wav]" +DEPEND="${DEPEND}" + +src_compile() { + tc-export CC + + local emakeargs=( + prefix="${EPREFIX}"/usr + gamesdir="${EPREFIX}"/var/games/${PN} + MOREOPTS="${CFLAGS} ${CPPFLAGS}" + ) + emake "${emakeargs[@]}" +} + +src_install() { + dobin ${PN} + doman ${PN}.6 + + insinto /usr/share/${PN} + doins -r data/. + + newicon ${PN}.icon.64x64.xpm ${PN}.xpm + domenu ${PN}.desktop + + dodir /var/games/${PN} + touch "${ED}"/var/games/${PN}/${PN}.scores || die + + fowners -R :gamestat /{usr/bin,var/games}/${PN} + fperms 660 /var/games/${PN}/${PN}.scores + fperms g+s /usr/bin/${PN} +} |