2021-08-19 21:25:25 +02:00
|
|
|
# Copyright 2017-2021 Gentoo Authors
|
2020-01-18 21:23:31 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-09-19 09:27:56 +02:00
|
|
|
EAPI="8"
|
2020-01-18 21:23:31 +01:00
|
|
|
|
2021-09-19 09:27:56 +02:00
|
|
|
inherit desktop
|
2020-01-18 21:23:31 +01:00
|
|
|
|
|
|
|
MY_PN="Osmos"
|
|
|
|
MY_P="${MY_PN}_${PV}"
|
|
|
|
|
|
|
|
DESCRIPTION="Play as a single-celled organism absorbing others"
|
|
|
|
HOMEPAGE="https://www.osmos-game.com/"
|
|
|
|
SRC_URI="${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Hemisphere_Games-EULA"
|
|
|
|
SLOT="0"
|
2024-08-19 05:00:00 +02:00
|
|
|
KEYWORDS="-* ~amd64"
|
2020-01-18 21:23:31 +01:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RESTRICT="bindist fetch strip test"
|
|
|
|
PROPERTIES="interactive"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
media-libs/freetype:2
|
|
|
|
media-libs/libvorbis
|
|
|
|
media-libs/openal
|
|
|
|
virtual/glu
|
|
|
|
virtual/opengl
|
|
|
|
x11-libs/libX11
|
|
|
|
"
|
|
|
|
|
|
|
|
QA_PREBUILT="/opt/osmos/osmos"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${MY_PN}"
|
|
|
|
|
|
|
|
pkg_nofetch() {
|
2021-08-05 14:22:51 +02:00
|
|
|
einfo "Please download ${MY_P}.tar.gz and place it into DISTDIR directory."
|
2020-01-18 21:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
# install a wrapper file
|
|
|
|
exeinto "/usr/bin/"
|
|
|
|
newexe "${FILESDIR}"/osmos-wrapper.sh ${PN}
|
|
|
|
|
|
|
|
# install all files to /opt/osmos, including the actual binary
|
|
|
|
exeinto "/opt/${PN}"
|
2024-08-19 05:00:00 +02:00
|
|
|
newexe ${MY_PN}.bin64 ${PN}
|
2020-01-18 21:23:31 +01:00
|
|
|
insinto "/opt/${PN}"
|
|
|
|
doins -r Fonts/ Sounds/ Textures/ Osmos-* *.cfg
|
|
|
|
|
|
|
|
newicon "Icons/256x256.png" "${PN}.png"
|
|
|
|
dodoc readme.html
|
|
|
|
|
|
|
|
make_desktop_entry "${PN}" "Osmos"
|
|
|
|
}
|