bootstrap.py: add Manjaro/Arch Linux setup
This commit is contained in:
parent
9b80d38c3e
commit
fcb5d27290
|
@ -41,6 +41,7 @@ repos_github = {
|
||||||
dep_fedora = ["make", "golang", "SDL2-devel", "SDL2_ttf-devel", "SDL2_mixer-devel"]
|
dep_fedora = ["make", "golang", "SDL2-devel", "SDL2_ttf-devel", "SDL2_mixer-devel"]
|
||||||
dep_debian = ["make", "golang", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-mixer-dev"]
|
dep_debian = ["make", "golang", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-mixer-dev"]
|
||||||
dep_macos = ["golang", "sdl2", "sdl2_ttf", "sdl2_mixer", "pkg-config"]
|
dep_macos = ["golang", "sdl2", "sdl2_ttf", "sdl2_mixer", "pkg-config"]
|
||||||
|
dep_arch = ["go", "sdl2", "sdl2_ttf", "sdl2_mixer"]
|
||||||
|
|
||||||
|
|
||||||
# Absolute path to current working directory.
|
# Absolute path to current working directory.
|
||||||
|
@ -79,6 +80,9 @@ def install_deps():
|
||||||
# Debian-like.
|
# Debian-like.
|
||||||
if shell("dpkg-query -l {}".format(' '.join(dep_debian))) != 0:
|
if shell("dpkg-query -l {}".format(' '.join(dep_debian))) != 0:
|
||||||
must_shell("sudo apt update && sudo apt install {}".format(' '.join(dep_debian)))
|
must_shell("sudo apt update && sudo apt install {}".format(' '.join(dep_debian)))
|
||||||
|
elif shell("which pacman") == 0:
|
||||||
|
# Arch-like.
|
||||||
|
must_shell("sudo pacman -S {}".format(' '.join(dep_arch)))
|
||||||
else:
|
else:
|
||||||
print("Warning: didn't detect your package manager to install SDL2 and other dependencies")
|
print("Warning: didn't detect your package manager to install SDL2 and other dependencies")
|
||||||
|
|
||||||
|
|
5
go.mod
5
go.mod
|
@ -41,3 +41,8 @@ require (
|
||||||
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
|
mvdan.cc/unparam v0.0.0-20200501210554-b37ab49443f7 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
replace git.kirsle.net/go/render => /home/kirsle/SketchyMaze/deps/render
|
||||||
|
replace git.kirsle.net/go/ui => /home/kirsle/SketchyMaze/deps/ui
|
||||||
|
replace git.kirsle.net/go/audio => /home/kirsle/SketchyMaze/deps/audio
|
||||||
|
|
Loading…
Reference in New Issue
Block a user