mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 22:25:42 +02:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/37917 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
42 lines
893 B
Bash
42 lines
893 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit desktop
|
|
|
|
DESCRIPTION="Violent point-and-click shooting game"
|
|
HOMEPAGE="https://lgames.sourceforge.io/Barrage/"
|
|
SRC_URI="https://downloads.sourceforge.net/lgames/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
RDEPEND="
|
|
acct-group/gamestat
|
|
media-libs/libsdl[sound,video]
|
|
media-libs/sdl-mixer"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_configure() {
|
|
econf --localstatedir="${EPREFIX}"/var/games
|
|
}
|
|
|
|
src_compile() {
|
|
default
|
|
|
|
# generated .desktop hardcodes icon path (and in wrong location)
|
|
sed -i "/^Icon=/s|=.*|=${PN}|" ${PN}.desktop || die
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
fowners :gamestat /{usr/bin/${PN},var/games/${PN}.hscr}
|
|
fperms g+s /usr/bin/${PN}
|
|
fperms 660 /var/games/${PN}.hscr
|
|
|
|
rm "${ED}"/usr/share/icons/${PN}48.png || die
|
|
newicon ${PN}48.png ${PN}.png
|
|
}
|