Skip to content

Commit

Permalink
Break out pacman requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaleblian committed Jul 5, 2024
1 parent ceb57f1 commit a06f435
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ endif

#----- Local rules beyond this point -- "Abandon hope...", etc --------------#

.PHONY: cycloevo debug doc markdown mpcf check distcheck
.PHONY: dldi-r4 dldi-cycloevo debug doc markdown dldi-mpcf check distcheck run

doc:
doxygen
Expand Down
13 changes: 7 additions & 6 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
# Attempts to set up a machine that has never seen anything devkitPro-related before.
# Take it with a salt-grain; read it and do it yourself step by step.

packages="dkp-toolchain-vars default-arm7 devkitARM devkitarm-crtls devkitarm-rules devkitpro-keyring dstools grit libfat-nds libnds nds-bzip2 nds-freetype nds-libexpat nds-libpng nds-pkg-config nds-zlib ndstool"
packages=$(cat requirements.txt)
ext=none
mgr=none
pacman=pacman
arch=$(uname -m)
system=$(uname -s)

echo "info : bootstrapping for $system on $arch ..."

case $system in
Darwin)
mgr=pkg
Expand All @@ -22,7 +24,7 @@ case $system in
mgr=pacman
ext=none
fi
if [ -f /etc/debian-version ]
if [ -f /etc/debian-version ] || [ -f /etc/debian_version ]
then
mgr=apt
ext=deb
Expand Down Expand Up @@ -68,16 +70,15 @@ then
case $system in
Darwin)
sudo installer -pkg $pacball -target /
sudo $pacman -S --noconfirm $packages
rm $pacball
;;
Linux)
sudo apt install wget gdebi-core -y
sudo gdebi -n devkitpro-pacman.$arch.deb
sudo $pacman -S --noconfirm $packages
;;
esac

sudo $pacman -S --noconfirm $packages

rm $pacball
fi

# if [ $mgr == pacman ]
Expand Down
17 changes: 17 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
dkp-toolchain-vars
default-arm7
devkitARM
devkitarm-crtls
devkitarm-rules
devkitpro-keyring
dstools
grit
libfat-nds
libnds
nds-bzip2
nds-freetype
nds-libexpat
nds-libpng
nds-pkg-config
nds-zlib
ndstool

0 comments on commit a06f435

Please sign in to comment.