]> git.zerfleddert.de Git - m1-debian/blob - mesa.sh
24cce78fa413e312f0eebfb63ce4830b5df34750
[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 main() {
14 mkdir -p build
15 cd build
16
17 # devscripts needed for dch and dcmd
18 dpkg -s devscripts >/dev/null 2>&1 || sudo apt-get install devscripts
19
20 command -v git >/dev/null || sudo apt-get install git
21 test -d mesa || git clone https://gitlab.freedesktop.org/asahi/mesa.git
22 cd mesa
23 git fetch -a -t
24 git reset --hard origin/main
25 rm -rf debian
26 cp -a ../../mesa-debian debian
27 EMAIL=thomas@glanzmann.de dch -v 23.0.0-`date +%Y%m%d%H%M` 'asahi wip'
28 sudo apt-get build-dep .
29 dpkg-buildpackage -uc -us -a arm64 --build=binary
30 }
31
32 main "$@"
Impressum, Datenschutz