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.
63 lines
1.4 KiB
63 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
|
||
3 years ago
|
EAPI=7
|
||
|
|
||
13 years ago
|
CDROM_OPTIONAL="yes"
|
||
3 years ago
|
inherit cdrom desktop unpacker wrapper
|
||
13 years ago
|
|
||
|
MY_PV=${PV/_beta/b}
|
||
3 years ago
|
DESCRIPTION="The hyped indie game of the year - by the Uplink creators"
|
||
13 years ago
|
HOMEPAGE="http://www.darwinia.co.uk/support/linux.html"
|
||
|
SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${MY_PV}.sh"
|
||
3 years ago
|
S="${WORKDIR}"
|
||
13 years ago
|
|
||
|
LICENSE="Introversion"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="-* ~amd64 ~x86"
|
||
5 years ago
|
RESTRICT="bindist mirror strip"
|
||
13 years ago
|
|
||
|
RDEPEND="
|
||
4 years ago
|
sys-libs/libstdc++-v3:5
|
||
9 years ago
|
media-libs/libsdl[abi_x86_32(-)]
|
||
|
media-libs/libvorbis[abi_x86_32(-)]
|
||
|
virtual/glu[abi_x86_32(-)]
|
||
3 years ago
|
virtual/opengl[abi_x86_32(-)]
|
||
|
"
|
||
13 years ago
|
|
||
3 years ago
|
dir=opt/${PN}
|
||
12 years ago
|
QA_PREBUILT="${dir:1}/lib/darwinia.bin.x86"
|
||
13 years ago
|
|
||
|
src_unpack() {
|
||
|
use cdinstall && cdrom_get_cds gamefiles/main.dat
|
||
|
unpack_makeself
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
insinto "${dir}"/lib
|
||
|
exeinto "${dir}"/lib
|
||
|
|
||
|
doins lib/{language,patch}.dat
|
||
10 years ago
|
doexe lib/darwinia.bin.x86 lib/open-www.sh
|
||
13 years ago
|
|
||
|
exeinto "${dir}"
|
||
10 years ago
|
doexe bin/Linux/x86/darwinia
|
||
13 years ago
|
|
||
|
if use cdinstall ; then
|
||
10 years ago
|
doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat
|
||
13 years ago
|
fi
|
||
|
|
||
10 years ago
|
dodoc README
|
||
13 years ago
|
newicon darwinian.png darwinia.png
|
||
|
|
||
3 years ago
|
make_wrapper darwinia ./darwinia "${dir}" "${dir}"
|
||
13 years ago
|
make_desktop_entry darwinia "Darwinia"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if ! use cdinstall; then
|
||
|
ewarn "To play the game, you need to copy main.dat and sounds.dat"
|
||
|
ewarn "from gamefiles/ on the game CD to ${dir}/lib/."
|
||
|
fi
|
||
|
}
|