gentoo-ebuilds/games-arcade/lbreakout/lbreakout-010315-r1.ebuild
Lucio Sauer 794061a329
*/*: inline mirror://sourceforge
bump copyright of touched ebuilds to 2024

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-04-30 20:21:05 +02:00

47 lines
1,001 B
Bash

# Copyright 1999-2024 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="https://lgames.sourceforge.io/LBreakout/"
SRC_URI="
https://downloads.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]"
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
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} LBreakout
}