Awesome
PSP Pacman
This respository contains all the files needed to build and install the pacman package managed for the PSP toolchain. Pacman can be used to build and manage packages with libraries for the PSP.
This package provides the following commands:
- psp-pacman - Allows users to install and manage PSP library packages.
- psp-makepkg - Allows users to build packages from PSPBUILD files.
Dependencies
On Ubuntu/Debian, the following packages need to be installed:
- build-essential
- gettext (optional to add support for other languages than english)
- libarchive-dev
- libarchive-tools
- libcurl4-openssl-dev
- libgpgme-dev
- libssl-dev
- m4
- pkg-config
- python3
- python3-venv
- wget
On Arch/Manjaro, the following packages need to be installed:
- base-devel
Besides that, the PSP toolchain will need to be installed before installing this.
Installation
- Install the dependencies.
- Make sure the environment variable
$PSPDEV
is set in your shell. Useecho $PSPDEV
to confirm this. - If
$PSPDEV
is set to/usr/local/pspdev
, install with the following command:
sudo ./pacman-sudo.sh
If you've installed the PSP toolchain in a user writable location use:
./pacman.sh
Usage
Here is how to use psp-pacman
and psp-makepkg
.
Installing a package
Installing a *.pkg.tar.gz
package with a PSP library can be done with:
psp-pacman -U package-name-1.0.2.pkg.tar.gz
Building a package
Building a package requires a PSPBUILD
script. Here is an example and some documentation on which options are available. Do not call it PKGBUILD
, though, use PSPBUILD
instead. Also make sure to install libraries in $pkgdir/psp/lib
in your build script, since this will translate to $PSPDEV/psp/lib
when installing. The architecure expected is mips.
Packages can be build by running the following command in a directory with a PSPBUILD file in it:
psp-makepkg
This will create a file called something like package-name-1.0.2.pkg.tar.gz
. This file can be shared or installed. Installing would be done using the following command:
psp-pacman -U package-name-1.0.2.pkg.tar.gz