Files
axe-os/build/gawk/build.bash
2026-02-08 11:54:33 +02:00

50 lines
599 B
Bash

. "$PROJECTDIR/build/gawk/package.env"
fetch $GAWK_URL
cd "$SOURCES" && tar xf gawk-$GAWK_VERSION.tar.xz && cd gawk-$GAWK_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
sed -i 's/extras//' Makefile.in
./configure \
--prefix=/usr \
--host=$TARGET \
--build=$(build-aux/config.guess) > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/gawk-$GAWK_VERSION"