Files
Astral/source-recipes/astral
T
2025-07-23 15:25:54 -03:00

24 lines
734 B
Plaintext

name=astral
version=0
source_dir="kernel-src"
allow_network="yes"
imagedeps="wget"
flanterm_commit="347d9cf1e3fced64aa20ab278e2fdcc834086035"
prepare() {
rm -f include/limine.h
rm -f io/printf.c
rm -f include/printf.h
rm -rf flanterm
curl https://raw.githubusercontent.com/limine-bootloader/limine-protocol/refs/heads/trunk/include/limine.h > include/limine.h
pushd /tmp/
wget https://github.com/mpaland/printf/archive/refs/tags/v4.0.0.tar.gz
tar -xf v4.0.0.tar.gz
wget https://github.com/mintsuki/flanterm/archive/${flanterm_commit}.tar.gz
tar -xf ${flanterm_commit}.tar.gz
popd
cp /tmp/printf-4.0.0/printf.c io/printf.c
cp /tmp/printf-4.0.0/printf.h include/printf.h
cp -r /tmp/flanterm-${flanterm_commit} flanterm
}