You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/lbreakout/lbreakout-010315-r1.ebuild

45 lines
923 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop toolchain-funcs
DESCRIPTION="Breakout clone written with the SDL library"
HOMEPAGE="http://lgames.sourceforge.net/LBreakout/"
SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
acct-group/gamestat
media-libs/libsdl[sound,video]"
DEPEND="${RDEPEND}"
HTML_DOCS=( lbreakout/manual/. )
src_prepare() {
default
# remove /games from datadir, and use /var/games for highscore file
sed -e '/^sdir=/s|/games.*||;' \
-e "/^hdir=/s|=.*|=${EPREFIX}/var/games|" \
-i configure || die
tc-export CC CXX
}
src_install() {
dodir /var/games #655000
default
fowners :gamestat /usr/bin/${PN} /var/games/${PN}.hscr
fperms g+s /usr/bin/${PN}
fperms 660 /var/games/${PN}.hscr
make_desktop_entry ${PN} LBreakout applications-games
}