It is definitely possible to have this installed alongside normal dolphin.
Here is a patch that installs it to /opt instead:
From 2aafe7502074f447279156657c6210ede378fe3a Mon Sep 17 00:00:00 2001
From: nissen22 <anon@anon.com>
Date: Sun, 21 Nov 2021 21:16:03 +0100
Subject: [PATCH] alternative install location
---
PKGBUILD | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 9909b41..00adc03 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
_mainpkgname="dolphin-emu"
pkgname=("$_mainpkgname-primehack-git")
-pkgver=1.0.4.r951.ge353752b6d
+pkgver=1.0.4.r955.g9a7417e48c
pkgrel=1
pkgdesc='Dolphin fork intended to give Metroid Prime Trilogy mouselook controls'
arch=('x86_64')
@@ -17,7 +17,7 @@ depends=(
'libpulse' 'libx11' 'libxi' 'libxrandr' 'lzo' 'mbedtls' 'pugixml' 'qt5-base'
'sfml' 'zlib'
'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libcurl.so'
- 'libminiupnpc.so' 'libswscale.so' 'libudev.so' 'libusb-1.0.so'
+ 'libminiupnpc.so' 'libswscale.so' 'libudev.so' 'libusb-1.0.so' 'tllist'
)
makedepends=('cmake' 'git' 'python')
optdepends=('pulseaudio: PulseAudio backend')
@@ -28,6 +28,7 @@ _sourcedirectory="dolphin"
prepare() {
cd "$srcdir/$_sourcedirectory/"
+ #git checkout 3a4a0580c67932224ce39826144c436c22fe5573
git submodule update --init
if [ -d 'build/' ]; then rm -rf 'build/'; fi
mkdir 'build/'
@@ -54,12 +55,12 @@ package() {
conflicts=("$_mainpkgname-git")
cd "$srcdir/$_sourcedirectory/"
- make DESTDIR="$pkgdir" -C 'build/' install
- install -Dm644 'Data/51-usb-device.rules' "$pkgdir/usr/lib/udev/rules.d/51-usb-device.rules"
+ make DESTDIR="$pkgdir/opt" -C 'build/' install
+ #install -Dm644 'Data/51-usb-device.rules' "$pkgdir/usr/lib/udev/rules.d/51-usb-device.rules"
- rm -rf "$pkgdir/usr/bin/primehack-dolphin"
- rm -rf "$pkgdir/usr/include"
- rm -rf "$pkgdir/usr/lib/libdiscord-rpc.a"
- rm -rf "$pkgdir/usr/share/man/man6/primehack-dolphin.6"
+ rm -rf "$pkgdir/opt/cudausr/bin/primehack-dolphin"
+ rm -rf "$pkgdir/opt/usr/include"
+ rm -rf "$pkgdir/opt/usr/lib/libdiscord-rpc.a"
+ rm -rf "$pkgdir/opt/usr/share/man/man6/primehack-dolphin.6"
}
--
2.36.0
This is probably still not ideal, as we should also patch the .desktop file (dolphin can actually receive flags to use a different directory than ~/.local/share/dolphin-emu
, to separate it better from the normal dolphin) and this patch also removes the udev rules included in the normal dolphin package (maybe they should be their own package?).
Pinned Comments
xiota commented on 2023-12-27 04:58 (UTC) (edited on 2024-01-08 12:09 (UTC) by xiota)
This package can currently be installed alongside
dolphin-emu-*
.primehack
and the config is stored in~/.config/primehack
.Avoid commenting and flagging at the same time for the same issue.