-
Notifications
You must be signed in to change notification settings - Fork 0
/
mesa.sh
33 lines (27 loc) · 1004 Bytes
/
mesa.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
cd "$(dirname "$0")"
unset LC_CTYPE
unset LANG
mkdir -p build
cd build
# devscripts needed for dch and dcmd
dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts
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
# 17:17 <marcan> also for mesa, use the latest versioned tag I made, *not* any
# live branch. mesa and kernel live branches are not kept in sync. generally
# the latest mesa tag will be in sync with the latest kernel tag and usually
# also the latest live kernel (except when I'm about to do a release)
# 17:18 <marcan> if those two desync it'll refuse to initialize
git reset --hard asahi-20231213
rm -rf debian
cp -a ../../mesa-debian debian
EMAIL=thomas@glanzmann.de dch -v 23.0.0-`date +%Y%m%d%H%M` 'asahi wip'
sudo apt-get build-dep .
dpkg-buildpackage -uc -us -a arm64 --build=binary