Skip to content

Commit

Permalink
games-puzzle/lmarbles: EAPI 7->8, autotools--, fix highscore file
Browse files Browse the repository at this point in the history
The executable wasn't suid gamestat and unable to write to it,
and score file was directly in /var/lib.

Also fixed .desktop file / icon.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
  • Loading branch information
ionenwks committed Jul 13, 2021
1 parent 61d64cb commit 0afa13c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 29 deletions.
1 change: 1 addition & 0 deletions games-puzzle/lmarbles/Manifest
@@ -1 +1,2 @@
DIST lmarbles-1.0.8.tar.gz 914238 BLAKE2B 263f069cdd82d300bd5185152158912a3972bd38b9baf254fe89ba5afced151edbc95c199acb43c2db00c805cbcaf2b0d6a13f4ac5f2a91580b70f3aabd4cb6f SHA512 d765b669a1b0039a0af8b28ede8209e9736c2f967b21d9f8372d1fc5475d49a766bef297615bff090532ade41fe44e084a458227b443566a54afebc3e989b57a
DIST lmarbles.png 3300 BLAKE2B fb18495174da23370ea85e053b298c0c0d0f682aea9e2c76c60a9b58964d4e365a00c700388f6a59f12e664b5e58646ad7661001372efb37e32c35e0240858df SHA512 722c9d3149a97320d8cf43f4d02c2b7c3a78e7fef945037bd712108ed66d31e012f2f6d3ecad1b572279592ed106e1f028a7f5045793c1bdd4f8b5e5f554063d
29 changes: 0 additions & 29 deletions games-puzzle/lmarbles/lmarbles-1.0.8-r1.ebuild

This file was deleted.

41 changes: 41 additions & 0 deletions games-puzzle/lmarbles/lmarbles-1.0.8-r2.ebuild
@@ -0,0 +1,41 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop

DESCRIPTION="Puzzle game inspired by Atomix and written in SDL"
HOMEPAGE="http://lgames.sourceforge.net/LMarbles/"
SRC_URI="
https://download.sourceforge.net/lgames/${P}.tar.gz
https://dev.gentoo.org/~ionen/distfiles/${PN}.png"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
acct-group/gamestat
media-libs/libsdl[sound,video]
media-libs/sdl-mixer"
DEPEND="${RDEPEND}"

HTML_DOCS=( src/manual/. )

src_configure() {
econf --localstatedir="${EPREFIX}"/var/games
}

src_install() {
default

fowners :gamestat /usr/bin/${PN} /var/games/lmarbles.prfs
fperms g+s /usr/bin/${PN}
fperms 660 /var/games/lmarbles.prfs

# gif format is not valid for XDG icons, and .desktop hardcodes icon path
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} LMarbles
rm "${ED}"/usr/share/{applications/${PN}.desktop,icons/lmarbles48.gif} || die
}

0 comments on commit 0afa13c

Please sign in to comment.