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-action/snipes/snipes-1.0.4-r1.ebuild

38 lines
777 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop flag-o-matic multilib toolchain-funcs
DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="media-libs/libsdl[sound,video]"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-ldflags.patch
)
src_compile() {
tc-export CC LD
# lld requires abi flags to be passed even if native (bug #730852)
LDLIBS=-lm emake RAW_LDFLAGS="$(get_abi_LDFLAGS) $(raw-ldflags)"
}
src_install() {
dobin ${PN}
doman ${PN}.6
einstalldocs
doicon ${PN}.png
make_desktop_entry ${PN} ${PN^}
}