From fcb5d2729035ccb974adf7495bcd739066c1f2a0 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 2 Jun 2021 19:18:52 -0700 Subject: [PATCH] bootstrap.py: add Manjaro/Arch Linux setup --- bootstrap.py | 4 ++++ go.mod | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/bootstrap.py b/bootstrap.py index 771eaf8..af5fc2e 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -41,6 +41,7 @@ repos_github = { 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_macos = ["golang", "sdl2", "sdl2_ttf", "sdl2_mixer", "pkg-config"] +dep_arch = ["go", "sdl2", "sdl2_ttf", "sdl2_mixer"] # Absolute path to current working directory. @@ -79,6 +80,9 @@ def install_deps(): # Debian-like. if shell("dpkg-query -l {}".format(' '.join(dep_debian))) != 0: 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: print("Warning: didn't detect your package manager to install SDL2 and other dependencies") diff --git a/go.mod b/go.mod index 80ba884..119c22c 100644 --- a/go.mod +++ b/go.mod @@ -41,3 +41,8 @@ require ( 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