forked from gentoo/gentoo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-puzzle/lmarbles: EAPI 7->8, autotools--, fix highscore file
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
Showing
3 changed files
with
42 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST lmarbles-1.0.8.tar.gz 914238 BLAKE2B 263f069cdd82d300bd5185152158912a3972bd38b9baf254fe89ba5afced151edbc95c199acb43c2db00c805cbcaf2b0d6a13f4ac5f2a91580b70f3aabd4cb6f SHA512 d765b669a1b0039a0af8b28ede8209e9736c2f967b21d9f8372d1fc5475d49a766bef297615bff090532ade41fe44e084a458227b443566a54afebc3e989b57a | ||
DIST lmarbles.png 3300 BLAKE2B fb18495174da23370ea85e053b298c0c0d0f682aea9e2c76c60a9b58964d4e365a00c700388f6a59f12e664b5e58646ad7661001372efb37e32c35e0240858df SHA512 722c9d3149a97320d8cf43f4d02c2b7c3a78e7fef945037bd712108ed66d31e012f2f6d3ecad1b572279592ed106e1f028a7f5045793c1bdd4f8b5e5f554063d |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |