]> cvs.zerfleddert.de Git - m1-debian/blob - mesa.sh
Merge branch 'master' of agrajag.zerfleddert.de:/git/m1-debian
[m1-debian] / mesa.sh
1 #!/usr/bin/env bash
2
3 set -o errexit
4 set -o nounset
5 set -o pipefail
6 set -o xtrace
7
8 cd "$(dirname "$0")"
9
10 unset LC_CTYPE
11 unset LANG
12
13 mkdir -p build
14 cd build
15
16 # devscripts needed for dch and dcmd
17 dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts
18
19 command -v git >/dev/null || sudo apt-get install git
20 test -d mesa || git clone https://gitlab.freedesktop.org/asahi/mesa.git
21 cd mesa
22 git fetch -a -t
23 # 17:17 <marcan> also for mesa, use the latest versioned tag I made, *not* any
24 # live branch. mesa and kernel live branches are not kept in sync. generally
25 # the latest mesa tag will be in sync with the latest kernel tag and usually
26 # also the latest live kernel (except when I'm about to do a release)
27 # 17:18 <marcan> if those two desync it'll refuse to initialize
28 git reset --hard asahi-20230321
29 rm -rf debian
30 cp -a ../../mesa-debian debian
31 EMAIL=thomas@glanzmann.de dch -v 23.0.0-`date +%Y%m%d%H%M` 'asahi wip'
32 sudo apt-get build-dep .
33 dpkg-buildpackage -uc -us -a arm64 --build=binary
Impressum, Datenschutz