Skip to content

Commit bf278ef

Browse files
committed
pcsx2: use upstream PPA for the latest version
1 parent 662c47a commit bf278ef

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

scriptmodules/emulators/pcsx2.sh

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,39 @@ rp_module_section="exp"
1717
rp_module_flags="!arm"
1818

1919
function depends_pcsx2() {
20-
# Build dependencies (from the Debian/Ubuntu package: https://github.com/PCSX2/pcsx2/blob/master/debian-packager/control)
21-
local depends=(cmake libaio-dev:i386 libasound2-dev:i386 libbz2-dev:i386 libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 libgtk2.0-dev:i386 liblzma-dev:i386 libpng-dev:i386 libpulse-dev:i386 libpcap0.8-dev:i386 libsdl2-dev:i386 libsoundtouch-dev:i386 libwxbase3.0-dev:i386 libwxgtk3.0-dev:i386 libx11-dev:i386 libxml2-dev:i386 portaudio19-dev:i386 zlib1g-dev:i386 libasound2-plugins:i386 libusb-0.1-4:i386)
2220
if isPlatform "64bit"; then
23-
# We need to add the target architecture (no side effects if it's already added)
24-
dpkg --add-architecture i386
25-
# Installing compiler dependencies for crossbuild
26-
depends+=(gcc-multilib g++-multilib)
21+
iniConfig " = " '"' "$configdir/all/retropie.cfg"
22+
iniGet "own_sdl2"
23+
if [[ "$ini_value" != "0" ]]; then
24+
if dialog --yesno "PCSX2 cannot be installed on a 64bit system with the RetroPie custom version of SDL2 installed due to version conflicts with the multiarch i386 version of SDL2.\n\nDo you want to downgrade to your OS version of SDL2 and continue to install PCSX2?" 22 76 2>&1 >/dev/tty; then
25+
chown $user:$user "$configdir/all/retropie.cfg"
26+
if rp_callModule sdl2 revert; then
27+
iniSet "own_sdl2" "0"
28+
else
29+
md_ret_errors+=("Failed to install $md_desc")
30+
fi
31+
else
32+
md_ret_errors+=("$md_desc install aborted.")
33+
fi
34+
fi
2735
fi
28-
getDepends "${depends[@]}"
29-
}
3036

31-
function sources_pcsx2() {
32-
gitPullOrClone "$md_build" https://github.com/PCSX2/pcsx2.git master
37+
if [[ "$md_mode" == "install" ]]; then
38+
add-apt-repository -y ppa:pcsx2-team/pcsx2-daily
39+
dpkg --add-architecture i386
40+
else
41+
rm -f /etc/apt/sources.list.d/pcsx2-team-ubuntu-pcsx2-daily-*.list
42+
apt-key del "D7B4 49CF E17E 659E 5A12 EE8E DD6E EEA2 BD74 7717" >/dev/null
43+
fi
3344
}
3445

35-
function build_pcsx2() {
36-
mkdir build
37-
cd build
38-
# Flags are the same as the Debian/Ubuntu package: https://github.com/PCSX2/pcsx2/blob/master/debian-packager/rules.
39-
# More info at https://github.com/PCSX2/pcsx2/wiki/Installing-on-Linux.
40-
# -DCMAKE_BUILD_TYPE=Release -> Best in speed, but provides little or no debug/crash info
41-
# -DXDG_STD=TRUE -> Use the Debian/Ubuntu configuration dir path, at ~/.config/PCSX2
42-
# -DPACKAGE_MODE=TRUE -> Required to make it installable in different folders
43-
# -DCMAKE_BUILD_STRIP=FALSE -> Keep symbols. Better for debug. (recommended since it should not have any impact on speed)
44-
# -DDISABLE_ADVANCE_SIMD=TRUE -> Disable AVX
45-
# -DGSDX_LEGACY=TRUE -> Build a GSdx legacy plugin compatible with GL3.3
46-
cmake .. -DCMAKE_BUILD_TYPE=Release -DXDG_STD=TRUE -DPACKAGE_MODE=TRUE -DCMAKE_BUILD_STRIP=FALSE -DDISABLE_ADVANCE_SIMD=TRUE -DGSDX_LEGACY=TRUE -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake -DCMAKE_INSTALL_PREFIX="$md_inst"
47-
make clean
48-
make
49-
md_ret_require="$md_build/build/pcsx2/PCSX2"
46+
function install_bin_pcsx2() {
47+
aptInstall pcsx2-unstable
5048
}
5149

52-
function install_pcsx2() {
53-
cd build
54-
make install
50+
function remove_pcsx2() {
51+
aptRemove pcsx2-unstable
52+
rp_callModule pcsx2 depends remove
5553
}
5654

5755
function configure_pcsx2() {

0 commit comments

Comments
 (0)