]> git.zerfleddert.de Git - m1-debian/commitdiff
mesa.sh: various minor changes
authorAndreas Henriksson <andreas@fatal.se>
Fri, 9 Dec 2022 19:48:32 +0000 (19:48 +0000)
committerThomas Glanzmann <thomas@glanzmann.de>
Fri, 9 Dec 2022 21:20:10 +0000 (22:20 +0100)
- install build-deps from the local debian/control file rather than
  from what the apt sources.list says about the mesa package.

mesa.sh

diff --git a/mesa.sh b/mesa.sh
index 222ad645ee115b0cca7fad3a5680194a92c4b09e..313462bb9a7b446cdfbdb53e148c2ff9a8acbacd 100644 (file)
--- a/mesa.sh
+++ b/mesa.sh
@@ -11,13 +11,15 @@ unset LC_CTYPE
 unset LANG
 
 main() {
-        sudo apt-get build-dep mesa
+        mkdir -p build
         cd build
+        command -v git >/dev/null || sudo apt-get install git
         test -d mesa || git clone https://gitlab.freedesktop.org/asahi/mesa.git
         cd mesa
         git fetch -a -t
         rm -rf debian
         cp -a ../../mesa-debian debian
+        sudo apt-get build-dep .
         dpkg-buildpackage -uc -us -a arm64
 }
 
Impressum, Datenschutz