Added freeware version of Grand Theft Auto 2
This commit is contained in:
parent
3790d290c0
commit
4d823f453e
5
games-action/gta2/Manifest
Normal file
5
games-action/gta2/Manifest
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
AUX gta2 571 BLAKE2B 06c4a1b2851be15dfd49d1ea8e59f0b330b4f8ea52159735223e196aeb87ba049653ca3068bb961f8a35e04a9614824ae71cc11ab9936a135ea651f37ed63c32 SHA512 5ac15179c768d90a6db45b20d4816033a2844e1f7de6322580a4dc4ee9c241ded29503983c841f55c1e7ba09ee1bba0c2eb2930ea1a56cf4fc5230d36be1641e
|
||||||
|
AUX gta2.iss 987 BLAKE2B 498abd4bdac068c511b1d4fa51b3ba19d0785807a6047f816e9e7d9c862f591f2ab1865c54795fed4296f45b1acabb76a8183a4c2f76fbb89e4cdb123b1a1379 SHA512 2996d26f2b2e426e879bab742676550d1c8d6900e1d4ffee388a971c98c7a56953b17c5b499169cabbe1887576ac96a8e448f4343b01b1db80727c8201ffec65
|
||||||
|
AUX gta2_manager 581 BLAKE2B f84bf80acafd5d314217a03ab58f3c9547e894938eaa3cf78751abb9f56f4289168cb98143bd77ade621f9d2ef1732d432f174ac611fc99ce648be6770d7b5f5 SHA512 2595d779c7a7649eac1b21169bb24a53dfa1ed8a73292521ea76e5d6bb304d2a511f29e2213527cf97679989041f77011e62099d228bf0ebee9b6f66eb45a0e9
|
||||||
|
DIST GTA2_full.zip 361630174 BLAKE2B d5dd09eabaf2b0b1e615455ed90bc27ba2640acf44ba076e9c552a32ca20aa0cd6a6ff613e34d27dd0fe658546a87478d51e0456ea6089fce6bc817ed8ee96fb SHA512 01b8dd863c90dfefc8fbb0691ac7dd9a9db44debf82d3ee902fcd661a2dec21f83cd5a9967f4f5889e4b7d55b9c9f7ac271a67d19d84f37f6854fd81f90d0bcb
|
||||||
|
EBUILD gta2-9.6.ebuild 1294 BLAKE2B db09765f01f5c78d6b1380dbfb64d4e7a86245b50ee5eabb551a11daf65bda5478bdc706dc6ba1b5decc4b63bbfd4f61324e527391f1d309c1f94e5dfe326c2e SHA512 73381873d19c9d685a6a8c6c01164f0b4178648ab03fa1ed68db64ddb275c7f3bb18d164a7f336b9de66b45a316d5bd1cd571be7cd20038bc61775a625ca50a8
|
29
games-action/gta2/files/gta2
Normal file
29
games-action/gta2/files/gta2
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
WINEPREFIX=~/.wine_gta2
|
||||||
|
WINEARCH=win32
|
||||||
|
GTA2_DATA_DIR="/usr/share/games/gta2"
|
||||||
|
|
||||||
|
if [ ! -d ~/.local/share/GTA2 ]; then
|
||||||
|
mkdir -p ~/.local/share/GTA2
|
||||||
|
pushd ~/.local/share/GTA2
|
||||||
|
for i in $(ls ${GTA2_DATA_DIR} | grep -v ^player$); do
|
||||||
|
ln -s ${GTA2_DATA_DIR}/$i
|
||||||
|
done
|
||||||
|
mkdir -p player
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd ~/.local/share/GTA2
|
||||||
|
set +e
|
||||||
|
DIRECTPLAY_INSTALLED=$(winetricks list-installed | grep ^directplay$ -c)
|
||||||
|
if [ ${DIRECTPLAY_INSTALLED} -eq 0 ]; then
|
||||||
|
set -e
|
||||||
|
winetricks directplay
|
||||||
|
set +e
|
||||||
|
fi
|
||||||
|
set -e
|
||||||
|
wine gta2.exe
|
||||||
|
popd
|
32
games-action/gta2/files/gta2.iss
Normal file
32
games-action/gta2/files/gta2.iss
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
[InstallShield Silent]
|
||||||
|
Version=v7.00
|
||||||
|
File=Response File
|
||||||
|
[File Transfer]
|
||||||
|
OverwrittenReadOnly=NoToAll
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-DlgOrder]
|
||||||
|
Dlg0={2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdWelcome-0
|
||||||
|
Count=5
|
||||||
|
Dlg1={2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdLicense2-0
|
||||||
|
Dlg2={2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdAskDestPath2-0
|
||||||
|
Dlg3={2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdStartCopy2-0
|
||||||
|
Dlg4={2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdFinish-0
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdWelcome-0]
|
||||||
|
Result=1
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdLicense2-0]
|
||||||
|
Result=1
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdAskDestPath2-0]
|
||||||
|
szDir=C:\Program Files\Rockstar Games\GTA2
|
||||||
|
Result=1
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdStartCopy2-0]
|
||||||
|
Result=1
|
||||||
|
[Application]
|
||||||
|
Name=GTA2
|
||||||
|
Version=1.00.001
|
||||||
|
Company=Rockstar Games
|
||||||
|
Lang=0009
|
||||||
|
[{2987EE84-C4EE-4FF5-8160-32DE00D6ABC6}-SdFinish-0]
|
||||||
|
Result=1
|
||||||
|
bOpt1=0
|
||||||
|
bOpt2=0
|
||||||
|
[{1A23419E-F52A-45D1-BB23-BC2083502C6B}-DlgOrder]
|
||||||
|
Count=0
|
29
games-action/gta2/files/gta2_manager
Normal file
29
games-action/gta2/files/gta2_manager
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
WINEPREFIX=~/.wine_gta2
|
||||||
|
WINEARCH=win32
|
||||||
|
GTA2_DATA_DIR="/usr/share/games/gta2"
|
||||||
|
|
||||||
|
if [ ! -d ~/.local/share/GTA2 ]; then
|
||||||
|
mkdir -p ~/.local/share/GTA2
|
||||||
|
pushd ~/.local/share/GTA2
|
||||||
|
for i in $(ls ${GTA2_DATA_DIR} | grep -v ^player$); do
|
||||||
|
ln -s ${GTA2_DATA_DIR}/$i
|
||||||
|
done
|
||||||
|
mkdir -p player
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd ~/.local/share/GTA2
|
||||||
|
set +e
|
||||||
|
DIRECTPLAY_INSTALLED=$(winetricks list-installed | grep ^directplay$ -c)
|
||||||
|
if [ ${DIRECTPLAY_INSTALLED} -eq 0 ]; then
|
||||||
|
set -e
|
||||||
|
winetricks directplay
|
||||||
|
set +e
|
||||||
|
fi
|
||||||
|
set -e
|
||||||
|
wine 'gta2 manager.exe'
|
||||||
|
popd
|
51
games-action/gta2/gta2-9.6.ebuild
Normal file
51
games-action/gta2/gta2-9.6.ebuild
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="And remember - respect is everything!"
|
||||||
|
HOMEPAGE="https://www.rockstargames.com/gta2/homepage.html"
|
||||||
|
SRC_URI="https://archive.org/download/pc_gta2/GTA2_full.zip"
|
||||||
|
|
||||||
|
LICENSE="Rockstar_freeware_GTA2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/unzip
|
||||||
|
sys-apps/sed
|
||||||
|
sys-apps/coreutils
|
||||||
|
sys-apps/grep"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-emulation/wine-vanilla[abi_x86_32]
|
||||||
|
app-emulation/winetricks
|
||||||
|
app-shells/bash"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unzip ${DISTDIR}/GTA2_full.zip
|
||||||
|
export WINEPREFIX="$(pwd)/wineprefix"
|
||||||
|
export WINEARCH="win32"
|
||||||
|
export RESPONSE_FILE=$(readlink -f ${FILESDIR}/gta2.iss | sed 's_^_Z:_;s_/_\\_g')
|
||||||
|
export WINEDEBUG="-all"
|
||||||
|
export HID_DEVICES=($(ls /dev | grep ^hid | sed 's_^_/dev/_'))
|
||||||
|
einfo "Adding temporary pseudo rw to /dev/input"
|
||||||
|
addpredict /dev/input
|
||||||
|
for hid_device in ${HID_DEVICES[@]}; do
|
||||||
|
einfo "Adding temporary pseudo rw to ${hid_device}"
|
||||||
|
addpredict ${hid_device}
|
||||||
|
done
|
||||||
|
wine GTA2/GTA2.exe /s /f1"${RESPONSE_FILE}" /f2"C:\iss.log"
|
||||||
|
mv ${WINEPREFIX}/drive_c/Program\ Files/Rockstar\ Games/GTA2 gta2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/games
|
||||||
|
doins -r gta2
|
||||||
|
dobin "${FILESDIR}/gta2"
|
||||||
|
dobin "${FILESDIR}/gta2_manager"
|
||||||
|
}
|
34
licenses/Rockstar_freeware_GTA2
Normal file
34
licenses/Rockstar_freeware_GTA2
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
--------------------------------------
|
||||||
|
GTA2 - README FIRST!
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
WARNING
|
||||||
|
--------------
|
||||||
|
This version of GTA2 is modified from its original version to enable support for modern PC's
|
||||||
|
and current Microsoft Windows(R) platforms. However, we unfortunately cannot guarantee that
|
||||||
|
GTA2 will work correctly on your PC. Installation and execution of this software is entirely
|
||||||
|
at your own risk.
|
||||||
|
|
||||||
|
|
||||||
|
INSTALLATION INSTRUCTIONS
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
- After downloading GTA2, unzip the file and double-click on the installer (GTA2.exe).
|
||||||
|
|
||||||
|
- The Install program will start; follow the on-screen install instructions and choose where you would like to install GTA2.
|
||||||
|
|
||||||
|
- GTA2 will then be installed and a program group created for you in "START > PROGRAMS > Rockstar Games > GTA2".
|
||||||
|
|
||||||
|
- You will NEED to run "AutoDetect" from the Program Menu BEFORE running the game for the first time.
|
||||||
|
|
||||||
|
- In AutoDetect you can choose your Rendering Engine (Method of Graphics Display). If your Graphics card supports 3D acceleration then please choose "Direct3D"; otherwise please choose "DirectDraw" or whatever other option appears in the drop-down menu. If you are unsure please choose "Direct3D" (you can always change it back later).
|
||||||
|
|
||||||
|
- Once you are done with the AutoDetect, choose "Save" to save your settings. You can now run GTA2!
|
||||||
|
|
||||||
|
- Just click on "START > PROGRAMS > Rockstar Games > GTA2 > GTA2" to start.
|
||||||
|
|
||||||
|
|
||||||
|
- Have Fun!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user