#!/bin/sh set -e apk upgrade --update-cache --available apk add alpine-sdk ca-certificates libcrypto1.1 libssl1.1 chrpath libffi-dev libucontext-dev cd /racket-*/src export CFLAGS="$CFLAGS -D_GNU_SOURCE" export LDFLAGS="$LDFLAGS -lucontext" rm -Rf src/foreign/libffi ./configure --prefix=/usr --sysconfdir=/etc --disable-docs --enable-strip --enable-libs --disable-gracket make -j $(nproc) CPUS=$(nproc) make install raco pkg install --deps search-auto cext-lib raco pkg install --deps search-auto gui-lib