Skip to content
Browse files

Merge pull request #2894 from cmitu/pcsx2-ppa

pcsx2: use upstream PPA for the latest version
  • Loading branch information
joolswills committed Nov 10, 2019
2 parents 76fed8a + bf278ef commit 9a09d9b1ba30c008742f6e1061fc12635f4d9c80
Showing with 26 additions and 28 deletions.
  1. +26 −28 scriptmodules/emulators/
@@ -17,41 +17,39 @@ rp_module_section="exp"

function depends_pcsx2() {
# Build dependencies (from the Debian/Ubuntu package:
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)
if isPlatform "64bit"; then
# We need to add the target architecture (no side effects if it's already added)
dpkg --add-architecture i386
# Installing compiler dependencies for crossbuild
depends+=(gcc-multilib g++-multilib)
iniConfig " = " '"' "$configdir/all/retropie.cfg"
iniGet "own_sdl2"
if [[ "$ini_value" != "0" ]]; then
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
chown $user:$user "$configdir/all/retropie.cfg"
if rp_callModule sdl2 revert; then
iniSet "own_sdl2" "0"
md_ret_errors+=("Failed to install $md_desc")
md_ret_errors+=("$md_desc install aborted.")
getDepends "${depends[@]}"

function sources_pcsx2() {
gitPullOrClone "$md_build" master
if [[ "$md_mode" == "install" ]]; then
add-apt-repository -y ppa:pcsx2-team/pcsx2-daily
dpkg --add-architecture i386
rm -f /etc/apt/sources.list.d/pcsx2-team-ubuntu-pcsx2-daily-*.list
apt-key del "D7B4 49CF E17E 659E 5A12 EE8E DD6E EEA2 BD74 7717" >/dev/null

function build_pcsx2() {
mkdir build
cd build
# Flags are the same as the Debian/Ubuntu package:
# More info at
# -DCMAKE_BUILD_TYPE=Release -> Best in speed, but provides little or no debug/crash info
# -DXDG_STD=TRUE -> Use the Debian/Ubuntu configuration dir path, at ~/.config/PCSX2
# -DPACKAGE_MODE=TRUE -> Required to make it installable in different folders
# -DCMAKE_BUILD_STRIP=FALSE -> Keep symbols. Better for debug. (recommended since it should not have any impact on speed)
# -DGSDX_LEGACY=TRUE -> Build a GSdx legacy plugin compatible with GL3.3
make clean
function install_bin_pcsx2() {
aptInstall pcsx2-unstable

function install_pcsx2() {
cd build
make install
function remove_pcsx2() {
aptRemove pcsx2-unstable
rp_callModule pcsx2 depends remove

function configure_pcsx2() {

0 comments on commit 9a09d9b

Please sign in to comment.
You can’t perform that action at this time.