Since devkitPro packages are distributed as pacman packages, you need pacman to install
them. But some RPM-based distros do not have pacman. With a bit of work, you can get
devkitPro's custom pacman (dkp-pacman
) installed, if you follow the steps below.
-
Download the rpm package from the releases page.
-
Install the rpm:
sudo rpm --install devkitpro-pacman-*.x86_64.rpm
-
Now set up dkp-pacman according to devkitPro's instructions:
sudo dkp-pacman-key --init sudo dkp-pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com sudo dkp-pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0 sudo dkp-pacman -Syu
This last command will install an update for
dkp-pacman
, overriding the files installed by the RPM package.
Now you're ready to start installing the devkitPro packages you want.
Most homebrew build scripts expect the environment variable DEVKITPRO
to be pointing to the root of
devkitPro (/opt/devkitpro
); similarly for DEVKITARM
and DEVKITPPC
. This is my
preferred way to set it up, on a distro that uses systemd:
-
Create the file
~/.config/environment.d/devkitpro.conf
with these lines:DEVKITPRO=/opt/devkitpro DEVKITARM=${DEVKITPRO}/devkitARM DEVKITPPC=${DEVKITPRO}/devkitPPC
-
Log out and back in again. You can check that the variable was defined properly by running this in a terminal:
printenv DEVKITPRO
-
(Optional) If you want to bring the devkitPro tools into your PATH during a terminal session, you can install the
dkp-toolchain-vars
package, which will install various shell scripts into/opt/devkitpro
that can be sourced.For instance, to set up a Wii U environment, you can do:
source $DEVKITPRO/wiiuvars.sh
Note that these will override variables like
CC
,CXX
,CPPFLAGS
, etc, making it very difficult to use your native compiler.For maximum convenience, you can add these aliases to your
~/.bash_aliases
:alias 3ds-env='source $DEVKITPRO/3dsvars.sh' alias cube-env='source $DEVKITPRO/cubevars.sh' alias nds-env='source $DEVKITPRO/ndsvars.sh' alias switch-env='source $DEVKITPRO/switchvars.sh' alias wii-env='source $DEVKITPRO/wiivars.sh' alias wiiu-env='source $DEVKITPRO/wiiuvars.sh'
Now you can just run
wiiu-env
to activate the Wii U environment, or similarly for the other consoles.
sudo dkp-pacman -Syu
dkp-pacman -Sl
sudo dkp-pacman -S package-name
sudo dkp-pacman -R package-name
dkp-pacman -Si package-name
dkp-pacman -Ql package-name